Explorar o código

Fixed Canvas:clear not working properly with antialiased Canvases

Alex Szpakowski %!s(int64=11) %!d(string=hai) anos
pai
achega
d5096840ba
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;
 		return false;
 
 
 	clear(Color(0, 0, 0, 0));
 	clear(Color(0, 0, 0, 0));
+
+	fsaa_dirty = (fsaa_buffer != 0);
+
 	return true;
 	return true;
 }
 }
 
 
@@ -868,6 +871,9 @@ void Canvas::clear(Color c)
 
 
 	if (current != this)
 	if (current != this)
 		strategy->bindFBO(previous);
 		strategy->bindFBO(previous);
+
+	if (fsaa_buffer != 0)
+		fsaa_dirty = true;
 }
 }
 
 
 bool Canvas::checkCreateStencil()
 bool Canvas::checkCreateStencil()