浏览代码

early fail on GLGraphicsBuffer if no support for fbo

David Rose 14 年之前
父节点
当前提交
d81fef3ae1
共有 1 个文件被更改,包括 7 次插入0 次删除
  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) &&