From c3247cfdc7241a473dbfa6f015a045456070acb9 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 31 Oct 2013 02:08:46 +0100 Subject: [PATCH] Revert "Fix nasty bug in one FBO setup. Must be a common mistake that some drivers work around?" Doesn't seem to have been a bug. But at least we got a test build out of it :P This reverts commit 1b46a9ce6bc57aa4aa83d3670fc3c8d46964a0eb. --- gfx_es2/fbo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx_es2/fbo.cpp b/gfx_es2/fbo.cpp index a2f64aac34..4e767d120b 100644 --- a/gfx_es2/fbo.cpp +++ b/gfx_es2/fbo.cpp @@ -172,7 +172,8 @@ FBO *fbo_create(int width, int height, int num_color_textures, bool z_stencil, F // Bind it all together glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo->handle); glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, fbo->color_texture, 0); - glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, fbo->z_stencil_buffer); + glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, fbo->z_stencil_buffer); + glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, fbo->z_stencil_buffer); } else { ILOG("Creating %i x %i FBO using separate stencil", width, height); // TEGRA