Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

glCheckFramebufferStatus returns 0 and no error in glGetError [closed]

glCheckFramebufferStatus returns 0 and there is no error returned from glGetError afterwards. Is it safe to assume that this is a driver bug? I can't seem to find anything in the documentation for OpenGL in how to handle this situation.

I am writing a game using SDL2 on Linux (Ubuntu 14.04) with the nvidia proprietary drivers.

like image 720
bofjas Avatar asked Oct 20 '25 13:10

bofjas


2 Answers

If anyone wants to know, it turns out I was running glCheckFramebufferStatus when no framebuffer was bound.

like image 85
bofjas Avatar answered Oct 23 '25 01:10

bofjas


check if you forgot to set your context as the current context. that's my case.

like image 36
wdanxna Avatar answered Oct 23 '25 02:10

wdanxna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!