From 92049dce823db88c763c7aa1b03a400e6d091d17 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 3 Oct 2005 23:11:53 +0000 Subject: [PATCH] minor fix to spheremap --- direct/src/showbase/ShowBase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 8e3fcf67cd..e767f1cd5c 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -1655,7 +1655,8 @@ class ShowBase(DirectObject.DirectObject): # First, make an offscreen buffer to convert the cube map to a # sphere map. We make it first so we can guarantee the # rendering order for the cube map. - toSphere = source.makeTextureBuffer(namePrefix, size, size) + toSphere = source.makeTextureBuffer(namePrefix, size, size, + Texture(), 1) # Now make the cube map buffer. rig = NodePath(namePrefix) @@ -1689,7 +1690,7 @@ class ShowBase(DirectObject.DirectObject): saved = self.screenshot(namePrefix = namePrefix, defaultFilename = defaultFilename, - source = toSphere) + source = toSphere.getTexture()) #base.graphicsEngine.removeWindow(buffer) #base.graphicsEngine.removeWindow(toSphere)