]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
don't upload the same ft2 font texture more than once
[xonotic/darkplaces.git] / gl_draw.c
index 9850142f6bdbbac40454ea474f544a7a2dcefd45..b1b330f8041e46eb2faf1252b40225c045e7abcf 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -53,7 +53,7 @@ static cachepic_t *cachepichash[CACHEPICHASHSIZE];
 static cachepic_t cachepics[MAX_CACHED_PICS];
 static int numcachepics;
 
-static rtexturepool_t *drawtexturepool;
+rtexturepool_t *drawtexturepool;
 
 static const unsigned char concharimage[FONT_FILESIZE] =
 {
@@ -1721,7 +1721,7 @@ float DrawQ_String_Scale(float startx, float starty, const char *text, size_t ma
                                                        break;
                                                }
                                        }
-                                       R_SetupShader_Generic(map->texture, NULL, GL_MODULATE, 1);
+                                       R_SetupShader_Generic(map->pic->tex, NULL, GL_MODULATE, 1);
                                }
 
                                mapch = ch - map->start;