From de2c9af677acafd3ad225eacb13b6c3474040d2e Mon Sep 17 00:00:00 2001 From: Nicky Date: Mon, 26 Aug 2013 22:16:42 +0200 Subject: [PATCH] Backout of c0f5f3933a72. That call is likely okay and the driver crash is due to some other reason way before that. --- indra/llrender/llvertexbuffer.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 2a2efa52ab..57a6aff275 100755 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -2016,14 +2016,7 @@ void LLVertexBuffer::unmapBuffer() { const MappedRegion& region = mMappedIndexRegions[i]; S32 offset = region.mIndex >= 0 ? sizeof(U16)*region.mIndex : 0; - - // If offset is greater zero, we cannot cannot copy all of region.mCount - - // S32 length = sizeof(U16)*region.mCount; - S32 length = sizeof(U16)*region.mCount - offset; - - // - + S32 length = sizeof(U16)*region.mCount; glBufferSubDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB, offset, length, (U8*) mMappedIndexData+offset); stop_glerror(); }