Skip to content
Snippets Groups Projects
Commit c2ea46f9 authored by Marco Biasini's avatar Marco Biasini
Browse files

MacOS X doesn't have GL_CLIP_DISTANCE0

parent c45d1761
Branches
Tags
No related merge requests found
......@@ -166,7 +166,7 @@ void GfxObj::RenderGL(RenderPass pass)
*/
if(clip_flag_) {
#if OST_SHADER_SUPPORT_ENABLED
#if OST_SHADER_SUPPORT_ENABLED && GL_VERSION_3_0
glEnable(GL_CLIP_DISTANCE0);
GLuint cp = Shader::Instance().GetCurrentProgram();
if(cp>0) {
......@@ -214,7 +214,7 @@ void GfxObj::RenderGL(RenderPass pass)
}
if(clip_flag_) {
#if OST_SHADER_SUPPORT_ENABLED
#if OST_SHADER_SUPPORT_ENABLED && GL_VERSION_3_0
glDisable(GL_CLIP_DISTANCE0);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment