mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
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 1b46a9ce6b.
This commit is contained in:
1 parent
1b46a9ce6b
commit
c3247cfdc7
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user