Commit 950910a7 authored by Robert Menzel's avatar Robert Menzel
Browse files

GL2.1 specific mipmap generation

parent 256338d1
......@@ -306,13 +306,18 @@ public:
{
glBindTexture(mTarget, mContext);
#if (!defined ACGL_OPENGL_PROFILE_CORE)
// on some windows systems Texturing has to be enabled to generate MipMaps
// on some ATI systems texturing has to be enabled to generate MipMaps
// this is not needed by the spec an deprecated on core profiles (generates
// an error on MacOS X Lion)
glEnable(mTarget);
openGLRareError();
#endif
#ifdef ACGL_OPENGL_VERSION_21
// OpenGL 2 way to generate MipMaps
glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE);
#else
glGenerateMipmap(mTarget);
#endif
openGLRareError();
}
......
Supports Markdown
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