diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-20 11:52:01 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-20 11:52:01 -0500 |
commit | 003eaf41247d4e648ef3b90ff5da1cb798334df9 (patch) | |
tree | b169a622c1c67a49c1ed662a6dfd7ba483a3d74b /indra/llrender | |
parent | a0cff3f011cd2c55ab63d5104169953f741a85f0 (diff) | |
parent | 707fca6abad1eb322fd0204d895d465f720fba13 (diff) |
merge
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llgl.cpp | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 97019d48c4..2ee7b16cf3 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -1039,23 +1039,8 @@ void flush_glerror() glGetError(); } -void assert_glerror() +void do_assert_glerror() { - if (!gGLActive) - { - //llwarns << "GL used while not active!" << llendl; - - if (gDebugSession) - { - //ll_fail("GL used while not active"); - } - } - - if (gNoRender || !gDebugGL) - { - return; - } - if (!gGLManager.mInited) { LL_ERRS("RenderInit") << "GL not initialized" << LL_ENDL; @@ -1107,6 +1092,25 @@ void assert_glerror() } } +void assert_glerror() +{ + if (!gGLActive) + { + //llwarns << "GL used while not active!" << llendl; + + if (gDebugSession) + { + //ll_fail("GL used while not active"); + } + } + + if (!gNoRender && gDebugGL) + { + do_assert_glerror(); + } +} + + void clear_glerror() { // Create or update texture to be used with this data |