mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
make sure pp-filter gets the same fb props as the main win - fixes antialiasing failure with FilterManager
This commit is contained in:
parent
306d6f993a
commit
7eeb37ec94
@ -276,8 +276,7 @@ class FilterManager(DirectObject):
|
|||||||
|
|
||||||
winprops = WindowProperties()
|
winprops = WindowProperties()
|
||||||
winprops.setSize(xsize, ysize)
|
winprops.setSize(xsize, ysize)
|
||||||
props = FrameBufferProperties()
|
props = FrameBufferProperties(self.win.getFbProperties())
|
||||||
props.setRgbColor(1)
|
|
||||||
props.setDepthBits(depthbits)
|
props.setDepthBits(depthbits)
|
||||||
depthtex, colortex, auxtex0, auxtex1 = texgroup
|
depthtex, colortex, auxtex0, auxtex1 = texgroup
|
||||||
if (auxtex0 != None):
|
if (auxtex0 != None):
|
||||||
@ -332,4 +331,3 @@ class FilterManager(DirectObject):
|
|||||||
self.nextsort = self.win.getSort() - 1000
|
self.nextsort = self.win.getSort() - 1000
|
||||||
self.basex = 0
|
self.basex = 0
|
||||||
self.basey = 0
|
self.basey = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user