aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:59 -0500
committerJacek Antonelli2008-08-15 23:45:59 -0500
commit6e91a9cc3d5a610198cf526a76e2ab642f10ecd7 (patch)
treeb023869f9daa7f61ea3ab27112d37524bdd88de4 /linden/indra/llrender
parentSecond Life viewer sources 1.20.12 (diff)
downloadmeta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.zip
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.gz
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.bz2
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.xz
Second Life viewer sources 1.20.13
Diffstat (limited to 'linden/indra/llrender')
-rw-r--r--linden/indra/llrender/llvertexbuffer.cpp10
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)