From 0a01eacd0965834842e84e2381650c2cc68d9850 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Sun, 12 Aug 2012 16:34:49 -0400 Subject: [PATCH] A litte more efficient --- src/graphics/OpenGLDrawMethods.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl index fb443e9dc..a197acaa2 100644 --- a/src/graphics/OpenGLDrawMethods.inl +++ b/src/graphics/OpenGLDrawMethods.inl @@ -244,12 +244,12 @@ void PIXELMETHODS_CLASS::xor_bitmap(unsigned char * bitmap, int x, int y, int w, glColor4f(1.0f,1.0f,1.0f,1.0f); for(int i =0; i < w*h; i++) { + glBegin(GL_POINTS); if(bitmap[i]==255) { - glBegin(GL_POINTS); glVertex2f(x+i%w,y+i/w); - glEnd(); } + glEnd(); } }