diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 20:34:49 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 20:34:49 (GMT) |
| commit | 0a01eacd0965834842e84e2381650c2cc68d9850 (patch) | |
| tree | 0adc2477305059c799620aff3420781614d4de12 /src/graphics/OpenGLDrawMethods.inl | |
| parent | 98d31ab5a5ee69e097ec1e47e38d4d940ed64331 (diff) | |
| download | powder-0a01eacd0965834842e84e2381650c2cc68d9850.zip powder-0a01eacd0965834842e84e2381650c2cc68d9850.tar.gz | |
A litte more efficient
Diffstat (limited to 'src/graphics/OpenGLDrawMethods.inl')
| -rw-r--r-- | src/graphics/OpenGLDrawMethods.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl index fb443e9..a197aca 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(); } } |
