summaryrefslogtreecommitdiff
path: root/indra/llrender/llvertexbuffer.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-25 02:43:43 -0500
committerDave Parks <davep@lindenlab.com>2011-09-25 02:43:43 -0500
commit56191701bcbc0ef1b6872cc6bfac1d18f636fd12 (patch)
treeb50bf2361f7c2db3377b8d748337199687c80c8e /indra/llrender/llvertexbuffer.cpp
parentf6744182511d68ccc135174b1999d3e4ae260881 (diff)
SH-2244 Fix for crash when enabling core profile on AMD GPUs
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r--indra/llrender/llvertexbuffer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 422f2a06d6..1b7b0cdf3e 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -1024,7 +1024,9 @@ void LLVertexBuffer::updateNumIndices(S32 nindices)
void LLVertexBuffer::allocateBuffer(S32 nverts, S32 nindices, bool create)
{
LLMemType mt2(LLMemType::MTYPE_VERTEX_ALLOCATE_BUFFER);
-
+
+ stop_glerror();
+
if (nverts < 0 || nindices < 0 ||
nverts > 65536)
{