1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

prevent current_linewidth from causing extra GL calls

This commit is contained in:
Zeno Rogue 2023-04-15 01:20:40 +02:00
parent f57157435e
commit 9f85af3068

View File

@ -666,7 +666,10 @@ EX void full_enable(shared_ptr<GLprogram> 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);