From 1c3ed04bcdc5c4b7e549d72abae533045378bb74 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 28 Mar 2016 05:15:17 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/jwzgles.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/jwzgles.c b/polymer/eduke32/build/src/jwzgles.c index 30aabc24c..ec5b52af0 100644 --- a/polymer/eduke32/build/src/jwzgles.c +++ b/polymer/eduke32/build/src/jwzgles.c @@ -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;