|
@@ -1281,9 +1281,13 @@ Class Canvas
|
|
DebugAssert( Not _lighting,"Canvas.Clear() cannot be used while lighting" )
|
|
DebugAssert( Not _lighting,"Canvas.Clear() cannot be used while lighting" )
|
|
If _lighting Return
|
|
If _lighting Return
|
|
|
|
|
|
- Flush()
|
|
|
|
|
|
+ Validate()
|
|
|
|
|
|
_device.Clear( color )
|
|
_device.Clear( color )
|
|
|
|
+
|
|
|
|
+ _drawNV=0
|
|
|
|
+ _drawOps.Clear()
|
|
|
|
+ _drawOp=New DrawOp
|
|
End
|
|
End
|
|
|
|
|
|
#rem monkeydoc Flushes drawing commands.
|
|
#rem monkeydoc Flushes drawing commands.
|
|
@@ -1294,11 +1298,13 @@ Class Canvas
|
|
|
|
|
|
#end
|
|
#end
|
|
Method Flush()
|
|
Method Flush()
|
|
-
|
|
|
|
- Validate()
|
|
|
|
|
|
|
|
|
|
+ _device.FlushTarget()
|
|
|
|
+
|
|
If _drawOps.Empty Return
|
|
If _drawOps.Empty Return
|
|
|
|
|
|
|
|
+ Validate()
|
|
|
|
+
|
|
_drawVB.Invalidate( 0,_drawNV )
|
|
_drawVB.Invalidate( 0,_drawNV )
|
|
|
|
|
|
_drawVB.Unlock()
|
|
_drawVB.Unlock()
|
|
@@ -1761,7 +1767,6 @@ Class Canvas
|
|
Endif
|
|
Endif
|
|
|
|
|
|
_dirty=Null
|
|
_dirty=Null
|
|
-
|
|
|
|
End
|
|
End
|
|
|
|
|
|
Method RenderDrawOps( rpass:Int )
|
|
Method RenderDrawOps( rpass:Int )
|