Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r--src/render/draw.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index d932739..af9ec27 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -1104,7 +1104,7 @@ void draw_pass_model_fx(float elapsed)
}
// restore the default depth buffer comparison function
- gl::depthfunc(GL_LESS);
+ gl::depthfunc(GL_LEQUAL);
gl::disable(GL_TEXTURE_2D);
gl::cullface(GL_BACK);
@@ -1185,7 +1185,7 @@ void draw(float seconds)
draw_pass_sky(); // draw the skybox
gl::depthmask(GL_TRUE); // enable writing to the depth buffer
- gl::depthfunc(GL_LESS); // default depth buffer comparison function
+ gl::depthfunc(GL_LEQUAL); // default depth buffer comparison function
gl::enable(GL_DEPTH_TEST); // enable depth testing
gl::enable(GL_CULL_FACE); // enable culling
gl::enable(GL_COLOR_MATERIAL); // enable color tracking