Change GL_CAPS_FBO

This commit is contained in:
twinaphex 2016-08-06 17:28:15 +02:00
parent 083bc4eed3
commit ef74742078

View File

@ -372,12 +372,9 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
#endif
break;
case GL_CAPS_FBO:
#ifndef HAVE_FBO
break;
#else
#if defined(HAVE_PSGL) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2)
return true;
#else
#elif defined(HAVE_FBO)
if (!gl_query_core_context_in_use() && !gl_query_extension("ARB_framebuffer_object")
&& !gl_query_extension("EXT_framebuffer_object"))
return false;
@ -394,7 +391,8 @@ bool gl_check_capability(enum gl_capability_enum enum_idx)
&& glDeleteRenderbuffers)
return true;
break;
#endif
#else
break;
#endif
case GL_CAPS_ARGB8:
#ifdef HAVE_OPENGLES