From 8aa5031fc0e9f8f8f9c19d8e641add898864cafa Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 7 Apr 2014 17:47:49 +0200 Subject: [PATCH] FBO: Combined TMP1 and TMP2 should embed DS. --- src/graphics/rtts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/rtts.cpp b/src/graphics/rtts.cpp index 4532035f2..c012a631a 100644 --- a/src/graphics/rtts.cpp +++ b/src/graphics/rtts.cpp @@ -119,7 +119,7 @@ RTT::RTT() FrameBuffers[FBO_EIGHTH1] = generateFBO(RenderTargetTextures[RTT_EIGHTH1]); FrameBuffers[FBO_EIGHTH2] = generateFBO(RenderTargetTextures[RTT_EIGHTH2]); - FrameBuffers[FBO_COMBINED_TMP1_TMP2] = generateFBO(RenderTargetTextures[RTT_TMP1]); + FrameBuffers[FBO_COMBINED_TMP1_TMP2] = generateFBO(RenderTargetTextures[RTT_TMP1], DepthStencilTexture); glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, RenderTargetTextures[RTT_TMP2], 0); if (irr_driver->getGLSLVersion() >= 150)