Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum OpenGL FrameBuffer Object size limit?

I am working on an OpenGL application on my laptop. My app shows lots of black and white unrecognizable patterns when I try to display a monochrome image (quite large). I have a hunch that it could be that my old Geforce Go 7950 GTX (512 MB) is too old for my app, and thinking the problem was due to framebuffer object size limit - is there a way to find out what the largest FBO can be?

like image 208
Adam Lee Avatar asked Jul 11 '11 20:07

Adam Lee


1 Answers

There is no maximum limit to framebuffer size in OpenGL. The limit is the largest texture or renderbuffer that you can attach to it.

There is however a maximum viewport size, get it using GL_MAX_VIEWPORT_DIMS, however according to the OpenGL specs, the viewport is silently clamped the max size anyway and shouldn't cause glitches. https://www.opengl.org/sdk/docs/man/html/glViewport.xhtml

like image 146
Hannesh Avatar answered Sep 21 '22 10:09

Hannesh