Commit d3d2f269 authored by hybrid's avatar hybrid

NO_ALPHA_CHANNEL bugfix from KH.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1036 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5812a6f1
...@@ -192,7 +192,7 @@ ECOLOR_FORMAT COpenGLTexture::getBestColorFormat(ECOLOR_FORMAT format) ...@@ -192,7 +192,7 @@ ECOLOR_FORMAT COpenGLTexture::getBestColorFormat(ECOLOR_FORMAT format)
} }
if (Driver->getTextureCreationFlag(ETCF_NO_ALPHA_CHANNEL)) if (Driver->getTextureCreationFlag(ETCF_NO_ALPHA_CHANNEL))
{ {
switch (format) switch (destFormat)
{ {
case ECF_A1R5G5B5: case ECF_A1R5G5B5:
destFormat = ECF_R5G6B5; destFormat = ECF_R5G6B5;
...@@ -273,7 +273,7 @@ void COpenGLTexture::copyTexture(bool newTexture) ...@@ -273,7 +273,7 @@ void COpenGLTexture::copyTexture(bool newTexture)
case ECF_A8R8G8B8: case ECF_A8R8G8B8:
InternalFormat=GL_RGBA; InternalFormat=GL_RGBA;
PixelFormat=GL_BGRA_EXT; PixelFormat=GL_BGRA_EXT;
if (reinterpret_cast<COpenGLDriver*>(Driver)->Version > 101) if (Driver->Version > 101)
PixelType=GL_UNSIGNED_INT_8_8_8_8_REV; PixelType=GL_UNSIGNED_INT_8_8_8_8_REV;
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment