Fix white flash levelshot bug in OpenGL1
If you tried to draw the last loaded image, gl texture 0 (which is appearently white) was used because renderer thought the image was already bound. Why OpenGL1 renderer binds texture 0, I have no idea. It's been removed from OpenGL2.
This commit is contained in:
1 parent
c02528cf1d
commit
973a616061
3 files changed
+2
-10
No files matched your search
@@ -900,6 +900,8 @@ image_t *R_CreateImage( const char *name, byte *pic, int width, int height,
|
||||
qglTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, glWrapClampMode );
|
||||
qglTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, glWrapClampMode );
|
||||
|
||||
// FIXME: this stops fog from setting border color?
|
||||
glState.currenttextures[glState.currenttmu] = 0;
|
||||
qglBindTexture( GL_TEXTURE_2D, 0 );
|
||||
|
||||
if ( image->TMU == 1 ) {
|
||||
|
||||
Reference in new issue
Block a user