mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver/opengl: Refactoring
This commit is contained in:
parent
4df958c9fd
commit
2097312a8b
@ -94,15 +94,9 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
isWebGL2Available bool
|
isWebGL2Available = js.Global().Get("WebGL2RenderingContext").Truthy()
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
if js.Global().Get("WebGL2RenderingContext").Truthy() {
|
|
||||||
isWebGL2Available = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type contextImpl struct {
|
type contextImpl struct {
|
||||||
gl js.Value
|
gl js.Value
|
||||||
lastProgramID programID
|
lastProgramID programID
|
||||||
|
Loading…
Reference in New Issue
Block a user