Ticket #98: font.d.patch98

File font.d.patch98, 1.1 kB (added by cyhawk, 3 years ago)
Line 
1 --- font.d.orig 2009-02-11 10:56:11.171875000 +0100
2 +++ font.d.ticket98 2009-02-27 11:20:11.531250000 +0100
3 @@ -404,7 +404,6 @@
4             Point origLoc = location;
5            
6             glEnable(GL_COLOR_MATERIAL);
7 -           glEnable(GL_TEXTURE_2D);
8             glEnable(GL_BLEND);
9            
10             // Do 1 pass rendering if we have the glBlendColorEXT function
11 @@ -424,6 +423,7 @@
12                     glBlendColorEXT(color.r * color.a, color.g * color.a, color.b * color.a, 1);
13                     glColor3f(color.a, color.a, color.a);
14                    
15 +                   glEnable(GL_TEXTURE_2D);
16                     glBindTexture(GL_TEXTURE_2D, g.texture.getID);
17                    
18                     glBegin(GL_QUADS);
19 @@ -455,6 +455,7 @@
20                     // fist pass blend func
21                     glBlendFunc(GL_ZERO, GL_ONE_MINUS_SRC_COLOR); glColor3f(color.a, color.a, color.a);
22                    
23 +                   glEnable(GL_TEXTURE_2D);
24                     glBindTexture(GL_TEXTURE_2D, g.texture.getID);
25                    
26                     glBegin(GL_QUADS);
27 @@ -484,6 +485,7 @@
28                     // second pass blend func
29                     glBlendFunc(GL_SRC_ALPHA, GL_ONE); glColor4f(color.r, color.g, color.b, color.a);
30                    
31 +                   glEnable(GL_TEXTURE_2D);
32                     glBindTexture(GL_TEXTURE_2D, g.texture.getID);
33                    
34                     glBegin(GL_QUADS);