mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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
|
gl := c.gl
|
||||||
f := gl.CreateFramebuffer()
|
f := gl.CreateFramebuffer()
|
||||||
if f.Value <= 0 {
|
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))
|
c.bindFramebuffer(framebufferNative(f))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user