projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c802605
)
bind the texture for rgba
author
Derek Foreman
<manmower@gmail.com>
Sun, 8 Jun 2003 23:34:25 +0000
(23:34 +0000)
committer
Derek Foreman
<manmower@gmail.com>
Sun, 8 Jun 2003 23:34:25 +0000
(23:34 +0000)
render2/texture.c
patch
|
blob
|
history
diff --git
a/render2/texture.c
b/render2/texture.c
index a1a119ed9fc707ecab0b83c9e2d443ad6f3c92df..97570ed7d56950efdfecade19920ed124660aa15 100644
(file)
--- a/
render2/texture.c
+++ b/
render2/texture.c
@@
-98,6
+98,7
@@
void RrTexturePaint(struct RrSurface *sur, struct RrTexture *tex,
break;
case RR_TEXTURE_RGBA:
glColor3f(1.0, 1.0, 1.0);
+ glBindTexture(GL_TEXTURE_2D, tex->data.rgba.texid);
glBegin(GL_TRIANGLES);
glVertex2i(x, y);
glVertex2i(x+w, y);