summaryrefslogtreecommitdiff
path: root/src/graphics/OpenGLDrawMethods.inl
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-15 14:02:48 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-15 14:02:48 (GMT)
commit2f0e67433c624cd3e006ca3f789e36edc64a894f (patch)
tree99a988ffe38f9cfd472e0252ded2ae4af2c156dc /src/graphics/OpenGLDrawMethods.inl
parent0bb4c0e57acabb956a4a0718ebab14364b6063f9 (diff)
downloadpowder-2f0e67433c624cd3e006ca3f789e36edc64a894f.zip
powder-2f0e67433c624cd3e006ca3f789e36edc64a894f.tar.gz
Ensure zoom is drawn after particles for OpenGL Rendering, draw walls onto the correct framebuffer
Diffstat (limited to 'src/graphics/OpenGLDrawMethods.inl')
-rw-r--r--src/graphics/OpenGLDrawMethods.inl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl
index 173cb4b..02e0378 100644
--- a/src/graphics/OpenGLDrawMethods.inl
+++ b/src/graphics/OpenGLDrawMethods.inl
@@ -228,7 +228,7 @@ void PIXELMETHODS_CLASS::xor_rect(int x, int y, int width, int height)
void PIXELMETHODS_CLASS::xor_bitmap(unsigned char * bitmap, int x, int y, int w, int h)
{
- /* Rewriting until better method can be found
+ /* Rewriting until better method can be found */
//glEnable(GL_COLOR_LOGIC_OP);
//glLogicOp(GL_XOR);
glEnable(GL_TEXTURE_2D);
@@ -254,8 +254,8 @@ void PIXELMETHODS_CLASS::xor_bitmap(unsigned char * bitmap, int x, int y, int w,
glDisable(GL_TEXTURE_2D);
//glDisable(GL_COLOR_LOGIC_OP);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
- */
- float old_size;
+
+ /*float old_size;
glGetFloatv(GL_POINT_SIZE,&old_size);
glPointSize(1.0);
@@ -269,7 +269,7 @@ void PIXELMETHODS_CLASS::xor_bitmap(unsigned char * bitmap, int x, int y, int w,
}
}
glEnd();
- glPointSize(old_size);
+ glPointSize(old_size);*/
}
void PIXELMETHODS_CLASS::draw_line(int x, int y, int x2, int y2, int r, int g, int b, int a)