improved the quality of 3D models from conformal menu

This commit is contained in:
Zeno Rogue committed 2018-03-24 15:15:30 +01:00
1 parent 74cc23f1c2
commit d3c9bfdd92
10 files changed
+72 -27

No files matched your search

+9
View File
@@ -670,4 +670,13 @@ void store_in_buffer(vector<glvertex>& v) {
#endif
}
bool current_depthtest;
void set_depthtest(bool b) {
if(b != current_depthtest) {
current_depthtest = b;
if(b) glEnable(GL_DEPTH_TEST);
else glDisable(GL_DEPTH_TEST);
}
}
}