Change int to GLenum for portability.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user