Backout of c0f5f3933a72. That call is likely okay and the driver crash is due to some other reason way before that.

meow-7.2.2
Nicky 2013-08-26 22:16:42 +02:00
parent f140dd0a9e
commit de2c9af677
1 changed files with 1 additions and 8 deletions

View File

@ -2016,14 +2016,7 @@ void LLVertexBuffer::unmapBuffer()
{
const MappedRegion& region = mMappedIndexRegions[i];
S32 offset = region.mIndex >= 0 ? sizeof(U16)*region.mIndex : 0;
// <FS:ND> 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;
// </FS:ND>
S32 length = sizeof(U16)*region.mCount;
glBufferSubDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB, offset, length, (U8*) mMappedIndexData+offset);
stop_glerror();
}