mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Use GLint when getting GL_GENERATE_MIPMAP.
Using GLboolean caused a stack corruption according to VS2012.
This commit is contained in:
@@ -159,8 +159,8 @@ void Image::checkMipmapsCreated() const
|
||||
|
||||
bind();
|
||||
|
||||
GLboolean mipmapscreated;
|
||||
glGetTexParameteriv(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, (GLint *)&mipmapscreated);
|
||||
GLint mipmapscreated;
|
||||
glGetTexParameteriv(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, &mipmapscreated);
|
||||
|
||||
// generate mipmaps for this image if we haven't already
|
||||
if (!mipmapscreated)
|
||||
|
||||
Reference in New Issue
Block a user