From 9f85af30682c164ed83683bbdce595fcce62d324 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 15 Apr 2023 01:20:40 +0200 Subject: [PATCH] prevent current_linewidth from causing extra GL calls --- glhr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glhr.cpp b/glhr.cpp index 9e89093f..cd96fabb 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -666,7 +666,10 @@ EX void full_enable(shared_ptr p) { current_projection[0][0] = -1e8; }, {}) id_modelview(); + #if MINIMIZE_GL_CALLS + #else current_linewidth = -1; + #endif /* if(current_depthwrite) glDepthMask(GL_TRUE); else glDepthMask(GL_FALSE); if(current_depthtest) glEnable(GL_DEPTH_TEST);