mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ui: Bug fix: Init should always return a opengl context
This commit is contained in:
parent
46c74ec818
commit
591d71b447
@ -116,7 +116,7 @@ func (*userInterface) swapBuffers() {
|
||||
func Init() *opengl.Context {
|
||||
// Do nothing in node.js.
|
||||
if js.Global.Get("require") != js.Undefined {
|
||||
return nil
|
||||
return opengl.NewContext()
|
||||
}
|
||||
|
||||
doc := js.Global.Get("document")
|
||||
|
Loading…
Reference in New Issue
Block a user