mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
jwzgles: Allow using RGBA as the input texture format for an alpha-less internal texture format.
git-svn-id: https://svn.eduke32.com/eduke32@5675 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
82e9e4e304
commit
1c3ed04bcd
1 changed files with 3 additions and 0 deletions
|
@ -2978,8 +2978,11 @@ jwzgles_glTexImage2D (GLenum target,
|
||||||
Assert (d2, "out of memory");
|
Assert (d2, "out of memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// WTF is right. I see no problem with this situation.
|
||||||
if (internalFormat == GL_RGB && format == GL_RGBA)
|
if (internalFormat == GL_RGB && format == GL_RGBA)
|
||||||
internalFormat = GL_RGBA; /* WTF */
|
internalFormat = GL_RGBA; /* WTF */
|
||||||
|
#endif
|
||||||
if (type == GL_UNSIGNED_INT_8_8_8_8_REV)
|
if (type == GL_UNSIGNED_INT_8_8_8_8_REV)
|
||||||
type = GL_UNSIGNED_BYTE;
|
type = GL_UNSIGNED_BYTE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue