Fix C26444 compiler warning (creating unnamed RAII instances that could lead to unintended behavior)

master
Ansariel 2025-10-15 19:00:44 +02:00 committed by Andrey Kleshchev
parent 8679b86cde
commit 6cdd9cff70
2 changed files with 2 additions and 2 deletions

View File

@ -2274,7 +2274,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

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