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