On 18/07/07, Chris Robinson chris.kcat@gmail.com wrote:
On Wednesday 18 July 2007 03:34:05 am H. Verbeet wrote:
Does that affect only texture attachments, or even renderbuffers? The sample code in GL_EXT_framebuffer_object uses two different renderbuffers for depth and stencil. If even render buffers do not work we're screwed on fglrx(not that this would be news).
Renderbuffers might be ok, but I'm not completely sure.
A snippet of code for my game I'm working on:
glGenRenderbuffersEXT(1, &scene_depth); glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, scene_depth); glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_DEPTH_STENCIL_EXT, scene_width, scene_height); scene_stencil = scene_depth; ...
Well yeah, that uses the same renderbuffer for both attachments.