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:
hendricks266 2016-03-28 05:15:17 +00:00
parent 82e9e4e304
commit 1c3ed04bcd

View file

@ -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;