Re: [AD] exnew_drawpixels.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Peter Wang wrote:
+      glGetBooleanv(GL_TEXTURE_2D, &on);
+      if (!on)
+         glEnable(GL_TEXTURE_2D);
+
       // FIXME: don't copy the whole bitmap
       glBindTexture(GL_TEXTURE_2D, ogl_bitmap->texture);
       /* We don't copy anything past bitmap->h on purpose. */

Might as well add if (!on) glDisable(GL_TEXTURE_2D); later on, like the other code does.


--
Milan Mimica
http://sparklet.sf.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/