From: Derek Foreman Date: Sun, 8 Jun 2003 23:31:26 +0000 (+0000) Subject: textures? not happening. X-Git-Tag: gl-oldtheme~30 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c802605a56d78d86323add3f4dc236dddbf285fe;p=dana%2Fopenbox.git textures? not happening. --- diff --git a/render2/texture.c b/render2/texture.c index 01b224ad..a1a119ed 100644 --- a/render2/texture.c +++ b/render2/texture.c @@ -32,7 +32,6 @@ void RrTextureSetRGBA(struct RrSurface *sur, { unsigned int num; struct RrTexture *tex = RrSurfaceTexture(sur, texnum); - if (!tex) return; RrTextureFreeContents(tex); tex->type = RR_TEXTURE_RGBA; @@ -97,6 +96,19 @@ void RrTexturePaint(struct RrSurface *sur, struct RrTexture *tex, tex->data.text.layout, tex->data.text.string, x, y, w, h); break; + case RR_TEXTURE_RGBA: + glColor3f(1.0, 1.0, 1.0); + glBegin(GL_TRIANGLES); + glVertex2i(x, y); + glVertex2i(x+w, y); + glVertex2i(x+w, y+h); + + glVertex2i(x+w, y+h); + glVertex2i(x, y+h); + glVertex2i(x, y); + glEnd(); + + break; } glDisable(GL_TEXTURE_2D); }