Browse Source

Fixed Canvas:clear not working properly with antialiased Canvases

Alex Szpakowski 11 years ago
parent
commit
d5096840ba
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/modules/graphics/opengl/Canvas.cpp

+ 6 - 0
src/modules/graphics/opengl/Canvas.cpp

@@ -590,6 +590,9 @@ bool Canvas::loadVolatile()
 		return false;
 
 	clear(Color(0, 0, 0, 0));
+
+	fsaa_dirty = (fsaa_buffer != 0);
+
 	return true;
 }
 
@@ -868,6 +871,9 @@ void Canvas::clear(Color c)
 
 	if (current != this)
 		strategy->bindFBO(previous);
+
+	if (fsaa_buffer != 0)
+		fsaa_dirty = true;
 }
 
 bool Canvas::checkCreateStencil()