Browse Source

Punish soft framebuffer configs if we're not asking for one

rdb 9 years ago
parent
commit
40acfeffb5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/display/frameBufferProperties.cxx

+ 7 - 0
panda/src/display/frameBufferProperties.cxx

@@ -480,6 +480,13 @@ get_quality(const FrameBufferProperties &reqs) const {
     quality -= 10000000;
     quality -= 10000000;
   }
   }
 
 
+  // Deduct for software-only renderers in absence of a special request.
+  // Cost: 2,000,000
+
+  if (get_force_software() && !reqs.get_force_software()) {
+    quality -= 2000000;
+  }
+
   // Deduct for missing depth, color, alpha, stencil, or accum.  Cost:
   // Deduct for missing depth, color, alpha, stencil, or accum.  Cost:
   // 1,000,000
   // 1,000,000