X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=r_sky.c;h=e7e5b30bb046a9dcca63d74279bfeda91bcd278d;hb=5204bb8cced9548d5c44f6d6a5ab2e5e4a841030;hp=837dde9f540d30fc2896510f6753fe660cf0d868;hpb=b6f04e7a3b73a2b2449add51f1e48097c0feec8c;p=xonotic%2Fdarkplaces.git diff --git a/r_sky.c b/r_sky.c index 837dde9f..e7e5b30b 100644 --- a/r_sky.c +++ b/r_sky.c @@ -272,6 +272,7 @@ static void R_SkyBox(void) GL_Color(1 * r_view.colorscale, 1 * r_view.colorscale, 1 * r_view.colorscale, 1); GL_BlendFunc(GL_ONE, GL_ZERO); GL_DepthMask(false); + GL_DepthRange(0, 1); GL_DepthTest(false); // don't modify or read zbuffer R_Mesh_VertexPointer(skyboxvertex3f, 0, 0); R_Mesh_ColorPointer(NULL, 0, 0); @@ -370,6 +371,7 @@ static void R_SkySphere(void) GL_Color(1 * r_view.colorscale, 1 * r_view.colorscale, 1 * r_view.colorscale, 1); GL_BlendFunc(GL_ONE, GL_ZERO); GL_DepthMask(true); + GL_DepthRange(0, 1); GL_DepthTest(false); // don't modify or read zbuffer R_Mesh_VertexPointer(skysphere_vertex3f, 0, 0); R_Mesh_ColorPointer(NULL, 0, 0); @@ -429,6 +431,7 @@ void R_Sky(void) //GL_Clear(GL_DEPTH_BUFFER_BIT); } */ + GL_DepthRange(0, 1); GL_DepthTest(true); GL_DepthMask(true); }