From 94fa51e3f78768eb184a4678efe24efa4070b183 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 18 Oct 2002 20:25:21 +0000 Subject: [PATCH] Change int to GLenum for portability. --- simgear/scene/sky/clouds3d/SkyTextureManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }