Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
950910a7
Commit
950910a7
authored
Sep 06, 2011
by
Robert Menzel
Browse files
GL2.1 specific mipmap generation
parent
256338d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Objects/Texture.hh
View file @
950910a7
...
...
@@ -306,13 +306,18 @@ public:
{
glBindTexture
(
mTarget
,
mContext
);
#if (!defined ACGL_OPENGL_PROFILE_CORE)
// on some
windows
systems
T
exturing has to be enabled to generate MipMaps
// on some
ATI
systems
t
exturing 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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment