Change int to GLenum for portability.

This commit is contained in:
david
2002-10-18 20:25:21 +00:00
parent 590547e12d
commit 94fa51e3f7
@@ -674,7 +674,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture,
if (bNew) if (bNew)
{ {
unsigned int iInternalFormat; GLenum iInternalFormat;
switch (iFormat) switch (iFormat)
{ {
case GL_LUMINANCE: case GL_LUMINANCE:
@@ -693,7 +693,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture,
iInternalFormat, iInternalFormat,
iWidth, iHeight, iWidth, iHeight,
0, 0,
iFormat, (GLenum) iFormat,
GL_UNSIGNED_BYTE, GL_UNSIGNED_BYTE,
pData); pData);
} }
@@ -702,7 +702,7 @@ SKYRESULT SkyTextureManager::_Create2DTextureObject(SkyTexture &texture,
glTexSubImage2D(GL_TEXTURE_2D, glTexSubImage2D(GL_TEXTURE_2D,
0, 0, 0, 0, 0, 0,
iWidth, iHeight, iWidth, iHeight,
iFormat, (GLenum) iFormat,
GL_UNSIGNED_BYTE, GL_UNSIGNED_BYTE,
pData); pData);
} }