Browse Source

tests: ensure FrameBufferProperties has working copy constructor

rdb 7 years ago
parent
commit
c1e5a71904
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/display/test_fbprops.py

+ 6 - 0
tests/display/test_fbprops.py

@@ -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.