FIRE-33434 - Crash when using GLOD on PBR Viewer

Removed setBuffer calls that require a shader to be bound. Why never needed to setBuffer in the first place!
meow-7.2.2
Beq 2023-12-02 21:55:33 +00:00
parent 360eccc56f
commit 4a3a79f2a3
1 changed files with 0 additions and 2 deletions

View File

@ -1733,7 +1733,6 @@ void LLModelPreview::genGlodLODs(S32 which_lod, U32 decimation, bool enforce_tri
for (U32 i = 0; i < mVertexBuffer[5][mdl].size(); ++i)
{
LLVertexBuffer* buff = mVertexBuffer[5][mdl][i];
buff->setBuffer();
U32 num_indices = mVertexBuffer[5][mdl][i]->getNumIndices();
if (num_indices > 2)
@ -1898,7 +1897,6 @@ void LLModelPreview::genGlodLODs(S32 which_lod, U32 decimation, bool enforce_tri
<< " Vertices: " << sizes[i * 2 + 1]
<< " Indices: " << sizes[i * 2] << LL_ENDL;
}
buff->setBuffer();
// <FS:ND> Fix glod so it works when just using the opengl core profile
//glodFillElements(mObject[base], names[i], GL_UNSIGNED_SHORT, (U8*)buff->getIndicesPointer());
LLStrider<LLVector3> vertex_strider;