python: s/num_cbufs/nr_cbufs/

This commit is contained in:
José Fonseca
2009-03-24 21:18:54 +00:00
parent ce518f4b0f
commit 5381331f97
3 changed files with 3 additions and 3 deletions

View File

@@ -396,7 +396,7 @@ class Context(Object):
_state = gallium.Framebuffer()
_state.width = state.width
_state.height = state.height
_state.num_cbufs = state.num_cbufs
_state.nr_cbufs = state.nr_cbufs
for i in range(len(state.cbufs)):
_state.set_cbuf(i, state.cbufs[i])
_state.set_zsbuf(state.zsbuf)

View File

@@ -139,7 +139,7 @@ def test(dev):
fb = Framebuffer()
fb.width = width
fb.height = height
fb.num_cbufs = 1
fb.nr_cbufs = 1
fb.set_cbuf(0, _cbuf)
ctx.set_framebuffer(fb)
_cbuf.clear_value = 0x00000000

View File

@@ -234,7 +234,7 @@ class TextureTest(TestCase):
fb = Framebuffer()
fb.width = width
fb.height = height
fb.num_cbufs = 1
fb.nr_cbufs = 1
fb.set_cbuf(0, cbuf)
ctx.set_framebuffer(fb)
ctx.surface_clear(cbuf, 0x00000000)