Browse Source

early fail on GLGraphicsBuffer if no support for fbo

David Rose 14 years ago
parent
commit
d81fef3ae1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      panda/src/wgldisplay/wglGraphicsPipe.cxx

+ 7 - 0
panda/src/wgldisplay/wglGraphicsPipe.cxx

@@ -176,6 +176,13 @@ make_output(const string &name,
         return NULL;
       }
     }
+    if ((wglgsg != 0) &&
+        (wglgsg->is_valid()) &&
+        (!wglgsg->needs_reset()) &&
+	!wglgsg->_supports_framebuffer_object) {
+      return NULL;
+    }
+
     // Early success - if we are sure that this buffer WILL
     // meet specs, we can precertify it.
     if ((wglgsg != 0) &&