Commit b39d6d33 authored by Matthias Möller's avatar Matthias Möller

fix ifdef to ifndef

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 220689f6
......@@ -881,7 +881,7 @@ void ShaderProgGenerator::buildFragmentShader()
case GL_TEXTURE_2D: type = "sampler2D"; break;
case GL_TEXTURE_3D: type = "sampler3D"; break;
case GL_TEXTURE_CUBE_MAP: type = "samplerCube​"; break;
#if defined(ARCH_DARWIN)
#if !defined(ARCH_DARWIN)
case GL_TEXTURE_RECTANGLE: type = "sampler2DRect"; break;
case GL_TEXTURE_BUFFER: type = "samplerBuffer​"; break;
case GL_TEXTURE_1D_ARRAY: type = "sampler1DArray"; break;
......@@ -1232,7 +1232,7 @@ QString ShaderGenDesc::toString() const
case GL_TEXTURE_2D: resStrm << "GL_TEXTURE_2D"; break;
case GL_TEXTURE_3D: resStrm << "GL_TEXTURE_3D"; break;
case GL_TEXTURE_CUBE_MAP: resStrm << "GL_TEXTURE_CUBE_MAP​"; break;
#if defined(ARCH_DARWIN)
#if !defined(ARCH_DARWIN)
case GL_TEXTURE_BUFFER: resStrm << "GL_TEXTURE_BUFFER​"; break;
case GL_TEXTURE_1D_ARRAY: resStrm << "GL_TEXTURE_1D_ARRAY"; break;
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