Create GL_CAPS_FP_FBO
This commit is contained in:
parent
3d76f6e79f
commit
09ea570dcb
|
@ -210,9 +210,9 @@ typedef struct gl
|
||||||
GLuint hw_render_depth[GFX_MAX_TEXTURES];
|
GLuint hw_render_depth[GFX_MAX_TEXTURES];
|
||||||
bool hw_render_fbo_init;
|
bool hw_render_fbo_init;
|
||||||
bool hw_render_depth_init;
|
bool hw_render_depth_init;
|
||||||
bool has_fp_fbo;
|
|
||||||
bool has_srgb_fbo_gles3;
|
bool has_srgb_fbo_gles3;
|
||||||
#endif
|
#endif
|
||||||
|
bool has_fp_fbo;
|
||||||
bool has_srgb_fbo;
|
bool has_srgb_fbo;
|
||||||
bool hw_render_use;
|
bool hw_render_use;
|
||||||
|
|
||||||
|
|
|
@ -321,7 +321,8 @@ enum gl_capability_enum
|
||||||
GL_CAPS_ES2_COMPAT,
|
GL_CAPS_ES2_COMPAT,
|
||||||
GL_CAPS_UNPACK_ROW_LENGTH,
|
GL_CAPS_UNPACK_ROW_LENGTH,
|
||||||
GL_CAPS_FULL_NPOT_SUPPORT,
|
GL_CAPS_FULL_NPOT_SUPPORT,
|
||||||
GL_CAPS_SRGB_FBO
|
GL_CAPS_SRGB_FBO,
|
||||||
|
GL_CAPS_FP_FBO
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool gl_check_capability(enum gl_capability_enum enum_idx)
|
static bool gl_check_capability(enum gl_capability_enum enum_idx)
|
||||||
|
@ -513,6 +514,15 @@ static bool gl_check_capability(enum gl_capability_enum enum_idx)
|
||||||
&& gl_query_extension("ARB_framebuffer_sRGB")))
|
&& gl_query_extension("ARB_framebuffer_sRGB")))
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
case GL_CAPS_FP_FBO:
|
||||||
|
#ifndef HAVE_OPENGLES
|
||||||
|
#ifdef HAVE_FBO
|
||||||
|
/* Float FBO is core in 3.2. */
|
||||||
|
if (gl_core_context || gl_query_extension("ARB_texture_float"))
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case GL_CAPS_NONE:
|
case GL_CAPS_NONE:
|
||||||
|
@ -2499,13 +2509,9 @@ static bool resolve_extensions(gl_t *gl, const char *context_ident)
|
||||||
|
|
||||||
/* No extensions for float FBO currently. */
|
/* No extensions for float FBO currently. */
|
||||||
gl->has_srgb_fbo_gles3 = gles3;
|
gl->has_srgb_fbo_gles3 = gles3;
|
||||||
#else
|
|
||||||
#ifdef HAVE_FBO
|
|
||||||
/* Float FBO is core in 3.2. */
|
|
||||||
gl->has_fp_fbo = gl_core_context || gl_query_extension("ARB_texture_float");
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
gl->has_fp_fbo = gl_check_capability(GL_CAPS_FP_FBO);
|
||||||
gl->has_srgb_fbo = gl_check_capability(GL_CAPS_SRGB_FBO);
|
gl->has_srgb_fbo = gl_check_capability(GL_CAPS_SRGB_FBO);
|
||||||
|
|
||||||
#ifdef HAVE_FBO
|
#ifdef HAVE_FBO
|
||||||
|
|
Loading…
Reference in New Issue