mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +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");
|
||||
}
|
||||
|
||||
#if 0
|
||||
// WTF is right. I see no problem with this situation.
|
||||
if (internalFormat == GL_RGB && format == GL_RGBA)
|
||||
internalFormat = GL_RGBA; /* WTF */
|
||||
#endif
|
||||
if (type == GL_UNSIGNED_INT_8_8_8_8_REV)
|
||||
type = GL_UNSIGNED_BYTE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue