Here is some code that demonstrates this error: (Without threading, the depth buffer sharing still fails, but thats a different bug that I will also file)
from panda3d.core import loadPrcFileData
loadPrcFileData("", "threading-model Cull/Draw")
import direct.directbase.DirectStart
from panda3d.core import *
Here is some code that demonstrates this error: (Without threading, the depth buffer sharing still fails, but thats a different bug that I will also file)
from panda3d.core import loadPrcFileData
loadPrcFileData("", "threading-model Cull/Draw")
import direct. directbase. DirectStart
from panda3d.core import *
winprops = base.win. getProperties( ) erties( ) or(1)
props = FrameBufferProp
props.setRgbCol
out = base.graphicsEn gine.makeOutput ( pe.BFSizeTrackH ost | GraphicsPipe. BFCanBindEvery | pe.BFRttCumulat ive | GraphicsPipe. BFRefuseWindow, win.getGsg( ), base.win)
base.pipe, "x", -2,
props, winprops,
GraphicsPi
GraphicsPi
base.
shared= out.shareDepthB uffer(base. win)
if not shared:
print "Failed to share depth"
run()