mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
opengl: Remove unused code
This commit is contained in:
parent
2c0f3d4302
commit
e4f157d9cd
@ -138,12 +138,7 @@ func Init() error {
|
||||
// Getting an extension might fail after the context is lost, so
|
||||
// it is required to get the extension here.
|
||||
c.loseContext = gl.Call("getExtension", "WEBGL_lose_context")
|
||||
if c.loseContext != js.Null() {
|
||||
// This testing function name is temporary.
|
||||
js.Global().Set("_ebiten_loseContextForTesting", js.NewCallback(func([]js.Value) {
|
||||
c.loseContext.Call("loseContext")
|
||||
}))
|
||||
}
|
||||
|
||||
theContext = c
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user