aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llrendertarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llrender/llrendertarget.cpp')
-rw-r--r--linden/indra/llrender/llrendertarget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/llrender/llrendertarget.cpp b/linden/indra/llrender/llrendertarget.cpp
index 708c582..e18ec56 100644
--- a/linden/indra/llrender/llrendertarget.cpp
+++ b/linden/indra/llrender/llrendertarget.cpp
@@ -99,11 +99,16 @@ void LLRenderTarget::allocate(U32 resx, U32 resy, U32 color_fmt, BOOL depth, U32
99 99
100 glGenFramebuffersEXT(1, (GLuint *) &mFBO); 100 glGenFramebuffersEXT(1, (GLuint *) &mFBO);
101 101
102 stop_glerror();
103
102 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, mFBO); 104 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, mFBO);
103 105
106 stop_glerror();
107
104 if (mDepth) 108 if (mDepth)
105 { 109 {
106 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, mUsage, mDepth, 0); 110 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, mUsage, mDepth, 0);
111 stop_glerror();
107 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT, mUsage, mDepth, 0); 112 glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_STENCIL_ATTACHMENT_EXT, mUsage, mDepth, 0);
108 stop_glerror(); 113 stop_glerror();
109 } 114 }