From d81fef3ae1b3e45590513cd8ebb3f5c8a893cf51 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 13 Feb 2012 01:47:08 +0000 Subject: [PATCH] early fail on GLGraphicsBuffer if no support for fbo --- panda/src/wgldisplay/wglGraphicsPipe.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/wgldisplay/wglGraphicsPipe.cxx b/panda/src/wgldisplay/wglGraphicsPipe.cxx index 8020f2f56e..d49e274b98 100644 --- a/panda/src/wgldisplay/wglGraphicsPipe.cxx +++ b/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) &&