mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-03 10:31:10 +08:00
Avoid comparing to js.Undefined() for consistency
This commit is contained in:
@@ -98,7 +98,7 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
if !jsutil.Equal(js.Global().Get("WebGL2RenderingContext"), js.Undefined()) {
|
||||
if js.Global().Get("WebGL2RenderingContext").Truthy() {
|
||||
isWebGL2Available = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user