Commit 020eae4f authored by hybrid's avatar hybrid

Add compile checks for supported extensions.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@753 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9982e8cf
...@@ -1737,10 +1737,14 @@ void COpenGLDriver::drawStencilShadowVolume(const core::vector3df* triangles, s3 ...@@ -1737,10 +1737,14 @@ void COpenGLDriver::drawStencilShadowVolume(const core::vector3df* triangles, s3
// The first parts are not correctly working, yet. // The first parts are not correctly working, yet.
#if 0 #if 0
#ifdef GL_EXT_stencil_two_side
if (FeatureAvailable[IRR_EXT_stencil_two_side] && FeatureAvailable[IRR_EXT_stencil_wrap]) if (FeatureAvailable[IRR_EXT_stencil_two_side] && FeatureAvailable[IRR_EXT_stencil_wrap])
{ {
glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT); glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT);
glEnable(GL_DEPTH_CLAMP_NV); #ifdef GL_NV_depth_clamp
if (FeatureAvailable[IRR_NV_depth_clamp])
glEnable(GL_DEPTH_CLAMP_NV);
#endif
glDisable(GL_CULL_FACE); glDisable(GL_CULL_FACE);
if (!zfail) if (!zfail)
{ {
...@@ -1773,7 +1777,9 @@ void COpenGLDriver::drawStencilShadowVolume(const core::vector3df* triangles, s3 ...@@ -1773,7 +1777,9 @@ void COpenGLDriver::drawStencilShadowVolume(const core::vector3df* triangles, s3
glDrawArrays(GL_TRIANGLES,0,count); glDrawArrays(GL_TRIANGLES,0,count);
} }
} }
else if (FeatureAvailable[IRR_ATI_separate_stencil]) else
#endif
if (FeatureAvailable[IRR_ATI_separate_stencil])
{ {
glDisable(GL_CULL_FACE); glDisable(GL_CULL_FACE);
if (!zfail) if (!zfail)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment