diff options
author | Dave Parks <davep@lindenlab.com> | 2011-09-25 02:43:43 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-09-25 02:43:43 -0500 |
commit | 56191701bcbc0ef1b6872cc6bfac1d18f636fd12 (patch) | |
tree | b50bf2361f7c2db3377b8d748337199687c80c8e /indra/llrender/llvertexbuffer.cpp | |
parent | f6744182511d68ccc135174b1999d3e4ae260881 (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.cpp | 4 |
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) { |