opengl: Remove unused code

This commit is contained in:
Hajime Hoshi 2018-06-30 12:34:40 +09:00
parent 2c0f3d4302
commit e4f157d9cd

View File

@ -138,12 +138,7 @@ func Init() error {
// Getting an extension might fail after the context is lost, so // Getting an extension might fail after the context is lost, so
// it is required to get the extension here. // it is required to get the extension here.
c.loseContext = gl.Call("getExtension", "WEBGL_lose_context") 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 theContext = c
return nil return nil
} }