Fix C26444 compiler warning (creating unnamed RAII instances that can lead to undefined behavior)

master
Ansariel 2025-10-14 10:13:09 +02:00
parent dc54661b3a
commit ad51dd5606
2 changed files with 2 additions and 2 deletions

View File

@ -2464,7 +2464,7 @@ void LLFloater::drawConeToOwner(F32 &context_cone_opacity,
LLRect local_rect = getLocalRect();
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
LLGLEnable(GL_CULL_FACE);
LLGLEnable cull_face(GL_CULL_FACE);
gGL.begin(LLRender::TRIANGLE_STRIP);
{
gGL.color4f(0.f, 0.f, 0.f, contex_cone_in_alpha * context_cone_opacity);

View File

@ -4940,7 +4940,7 @@ void LLPipeline::renderPhysicsDisplay()
gGL.flush();
gDebugProgram.bind();
LLGLEnable(GL_POLYGON_OFFSET_LINE);
LLGLEnable ploygon_offset_line(GL_POLYGON_OFFSET_LINE);
glPolygonOffset(3.f, 3.f);
gGL.setLineWidth(3.f);
LLGLEnable blend(GL_BLEND);