]> git.mxchange.org Git - simgear.git/commitdiff
Change int to GLenum for portability.
authordavid <david>
Fri, 18 Oct 2002 20:25:21 +0000 (20:25 +0000)
committerdavid <david>
Fri, 18 Oct 2002 20:25:21 +0000 (20:25 +0000)
simgear/scene/sky/clouds3d/SkyTextureManager.cpp

index 1844a9904d117a91f82682de7d8001b10a83de1a..72de91a365ebb574faacb9ccee1bad33d396215a 100644 (file)
@@ -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);
   }