From: david Date: Fri, 18 Oct 2002 20:25:21 +0000 (+0000) Subject: Change int to GLenum for portability. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94fa51e3f78768eb184a4678efe24efa4070b183;p=simgear.git Change int to GLenum for portability. --- diff --git a/simgear/scene/sky/clouds3d/SkyTextureManager.cpp b/simgear/scene/sky/clouds3d/SkyTextureManager.cpp index 1844a990..72de91a3 100644 --- a/simgear/scene/sky/clouds3d/SkyTextureManager.cpp +++ b/simgear/scene/sky/clouds3d/SkyTextureManager.cpp @@ -674,7 +674,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture, if (bNew) { - unsigned int iInternalFormat; + GLenum iInternalFormat; switch (iFormat) { case GL_LUMINANCE: @@ -693,7 +693,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture, iInternalFormat, iWidth, iHeight, 0, - iFormat, + (GLenum) iFormat, GL_UNSIGNED_BYTE, pData); } @@ -702,7 +702,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture, glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, iWidth, iHeight, - iFormat, + (GLenum) iFormat, GL_UNSIGNED_BYTE, pData); }