diff options
Diffstat (limited to 'linden/indra/llrender/llvertexbuffer.cpp')
-rw-r--r-- | linden/indra/llrender/llvertexbuffer.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/llrender/llvertexbuffer.cpp b/linden/indra/llrender/llvertexbuffer.cpp index 073fcbf..9635ae3 100644 --- a/linden/indra/llrender/llvertexbuffer.cpp +++ b/linden/indra/llrender/llvertexbuffer.cpp | |||
@@ -765,9 +765,17 @@ U8* LLVertexBuffer::mapBuffer(S32 access) | |||
765 | { | 765 | { |
766 | llerrs << "Mapped two VBOs at the same time!" << llendl; | 766 | llerrs << "Mapped two VBOs at the same time!" << llendl; |
767 | } | 767 | } |
768 | sMapped = TRUE;*/ | 768 | sMapped = TRUE;*/ |
769 | if (!mMappedData) | 769 | if (!mMappedData) |
770 | { | 770 | { |
771 | //-------------------- | ||
772 | //print out more debug info before crash | ||
773 | llinfos << "vertex buffer size: (num verts : num indices) = " << getNumVerts() << " : " << getNumIndices() << llendl ; | ||
774 | GLint size ; | ||
775 | glGetBufferParameterivARB(GL_ARRAY_BUFFER_ARB, GL_BUFFER_SIZE_ARB, &size) ; | ||
776 | llinfos << "GL_ARRAY_BUFFER_ARB size is " << size << llendl ; | ||
777 | //-------------------- | ||
778 | |||
771 | GLint buff; | 779 | GLint buff; |
772 | glGetIntegerv(GL_ARRAY_BUFFER_BINDING_ARB, &buff); | 780 | glGetIntegerv(GL_ARRAY_BUFFER_BINDING_ARB, &buff); |
773 | if (buff != mGLBuffer) | 781 | if (buff != mGLBuffer) |