diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-10-12 15:38:52 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-10-12 15:38:52 -0600 |
commit | c3764eaf87580b66790a8d6c4c6a6700159f7977 (patch) | |
tree | c9a6610aaf1742ee31a98f48c8496629fc27fef6 /indra/llrender | |
parent | 4809142acce5ed66579184dca4fa6e4cdb7bfeed (diff) |
add debug code for SH-207: viewer crash in LLVertexBuffer::mapBuffer
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index de4501dd0f..fd5136e58b 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -854,6 +854,8 @@ U8* LLVertexBuffer::mapBuffer(S32 access) if (!mMappedData) { + log_glerror(); + //-------------------- //print out more debug info before crash llinfos << "vertex buffer size: (num verts : num indices) = " << getNumVerts() << " : " << getNumIndices() << llendl ; @@ -875,6 +877,8 @@ U8* LLVertexBuffer::mapBuffer(S32 access) if (!mMappedIndexData) { + log_glerror(); + GLint buff; glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB, &buff); if ((GLuint)buff != mGLIndices) |