retrace: Handle clear_render_target and clear_depth_stencil.

This commit is contained in:
José Fonseca 2010-10-04 17:05:03 +01:00
parent 9528fc2107
commit 5661e51c01
1 changed files with 9 additions and 0 deletions

View File

@ -610,6 +610,15 @@ class Context(Object):
_rgba[i] = rgba[i]
self.real.clear(buffers, _rgba, depth, stencil)
def clear_render_target(self, dst, rgba, dstx, dsty, width, height):
_rgba = gallium.FloatArray(4)
for i in range(4):
_rgba[i] = rgba[i]
self.real.clear_render_target(dst, _rgba, dstx, dsty, width, height)
def clear_depth_stencil(self, dst, clear_flags, depth, stencil, dstx, dsty, width, height):
self.real.clear_depth_stencil(dst, clear_flags, depth, stencil, dstx, dsty, width, height)
def _present(self):
self.real.flush()