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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/llrender/llrendertarget.cpp b/linden/indra/llrender/llrendertarget.cpp
index d95c8aa..e1f7703 100644
--- a/linden/indra/llrender/llrendertarget.cpp
+++ b/linden/indra/llrender/llrendertarget.cpp
@@ -33,6 +33,7 @@
33 33
34#include "llrendertarget.h" 34#include "llrendertarget.h"
35#include "llglimmediate.h" 35#include "llglimmediate.h"
36#include "llgl.h"
36 37
37 38
38BOOL LLRenderTarget::sUseFBO = FALSE; 39BOOL LLRenderTarget::sUseFBO = FALSE;
@@ -150,6 +151,15 @@ void LLRenderTarget::bindTarget()
150 glViewport(0, 0, mResX, mResY); 151 glViewport(0, 0, mResX, mResY);
151} 152}
152 153
154// static
155void LLRenderTarget::unbindTarget()
156{
157 if (gGLManager.mHasFramebufferObject)
158 {
159 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
160 }
161}
162
153void LLRenderTarget::clear() 163void LLRenderTarget::clear()
154{ 164{
155 U32 mask = GL_COLOR_BUFFER_BIT; 165 U32 mask = GL_COLOR_BUFFER_BIT;