Browse Source

Call PixelEffect::detach() in Graphics::reset, not Graphics::clear (fixes issue #379)

Bill Meltsner 13 years ago
parent
commit
d69ec266be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Graphics.cpp

+ 1 - 1
src/modules/graphics/opengl/Graphics.cpp

@@ -182,6 +182,7 @@ namespace opengl
 		DisplayState s;
 		discardStencil();
 		Canvas::bindDefaultCanvas();
+		PixelEffect::detach();
 		restoreState(s);
 	}
 
@@ -189,7 +190,6 @@ namespace opengl
 	{
 		glClear(GL_COLOR_BUFFER_BIT);
 		glLoadIdentity();
-		PixelEffect::detach();
 	}
 
 	void Graphics::present()