mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-16 14:14:07 +00:00
prevent current_linewidth from causing extra GL calls
This commit is contained in:
parent
f57157435e
commit
9f85af3068
3
glhr.cpp
3
glhr.cpp
@ -666,7 +666,10 @@ EX void full_enable(shared_ptr<GLprogram> p) {
|
|||||||
current_projection[0][0] = -1e8;
|
current_projection[0][0] = -1e8;
|
||||||
}, {})
|
}, {})
|
||||||
id_modelview();
|
id_modelview();
|
||||||
|
#if MINIMIZE_GL_CALLS
|
||||||
|
#else
|
||||||
current_linewidth = -1;
|
current_linewidth = -1;
|
||||||
|
#endif
|
||||||
/* if(current_depthwrite) glDepthMask(GL_TRUE);
|
/* if(current_depthwrite) glDepthMask(GL_TRUE);
|
||||||
else glDepthMask(GL_FALSE);
|
else glDepthMask(GL_FALSE);
|
||||||
if(current_depthtest) glEnable(GL_DEPTH_TEST);
|
if(current_depthtest) glEnable(GL_DEPTH_TEST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user