mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/opengl: Fix the error message
This commit is contained in:
parent
cac4b43ddd
commit
b755a1f970
@ -191,7 +191,7 @@ func (c *context) newFramebuffer(texture textureNative) (framebufferNative, erro
|
||||
gl := c.gl
|
||||
f := gl.CreateFramebuffer()
|
||||
if f.Value <= 0 {
|
||||
return framebufferNative{}, errors.New("opengl: creating framebuffer failed: gl.IsFramebuffer returns false")
|
||||
return framebufferNative{}, errors.New("opengl: creating framebuffer failed: the returned value is negative")
|
||||
}
|
||||
c.bindFramebuffer(framebufferNative(f))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user