tests: ensure FrameBufferProperties has working copy constructor

This commit is contained in:
rdb 2018-06-09 10:38:03 +02:00
parent fa6d8b4b39
commit c1e5a71904

View File

@ -1,6 +1,12 @@
from panda3d.core import FrameBufferProperties from panda3d.core import FrameBufferProperties
def test_fbprops_copy_ctor():
default = FrameBufferProperties.get_default()
fbprops = FrameBufferProperties(default)
assert fbprops == default
def test_fbquality_depth(): def test_fbquality_depth():
# We check common framebuffer depth configurations to make sure they # We check common framebuffer depth configurations to make sure they
# are rated predictably with respect to each other when requesting 1 bit. # are rated predictably with respect to each other when requesting 1 bit.