mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
(PSGL) More PSGL ifdefs
This commit is contained in:
parent
c5f43963c0
commit
961c1189fd
7
gfx/gl.c
7
gfx/gl.c
@ -196,9 +196,6 @@ static bool check_fbo_proc(gl_t *gl)
|
|||||||
#else
|
#else
|
||||||
#define check_fbo_proc(gl) (true)
|
#define check_fbo_proc(gl) (true)
|
||||||
#endif
|
#endif
|
||||||
#if defined(__APPLE__) || defined(HAVE_PSGL)
|
|
||||||
#define GL_RGBA32F GL_RGBA32F_ARB
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////// Shaders
|
////////////////// Shaders
|
||||||
@ -525,7 +522,7 @@ static void gl_create_fbo_textures(void *data)
|
|||||||
RARCH_ERR("[GL]: Floating-point FBO was requested, but is not supported. Falling back to UNORM.\n");
|
RARCH_ERR("[GL]: Floating-point FBO was requested, but is not supported. Falling back to UNORM.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef HAVE_PSGL
|
#ifndef HAVE_OPENGLES
|
||||||
if (srgb_fbo && gl->has_srgb_fbo)
|
if (srgb_fbo && gl->has_srgb_fbo)
|
||||||
{
|
{
|
||||||
RARCH_LOG("[GL]: FBO pass #%d is sRGB.\n", i);
|
RARCH_LOG("[GL]: FBO pass #%d is sRGB.\n", i);
|
||||||
@ -1835,7 +1832,7 @@ static bool resolve_extensions(gl_t *gl)
|
|||||||
#else
|
#else
|
||||||
#ifdef HAVE_FBO
|
#ifdef HAVE_FBO
|
||||||
// Float FBO is core in 3.2.
|
// Float FBO is core in 3.2.
|
||||||
#ifdef HAVE_PSGL
|
#ifdef HAVE_GCMGL
|
||||||
gl->has_fp_fbo = false; // FIXME - rewrite GL implementation
|
gl->has_fp_fbo = false; // FIXME - rewrite GL implementation
|
||||||
#else
|
#else
|
||||||
gl->has_fp_fbo = gl->core_context || gl_query_extension(gl, "ARB_texture_float");
|
gl->has_fp_fbo = gl->core_context || gl_query_extension(gl, "ARB_texture_float");
|
||||||
|
@ -110,6 +110,14 @@
|
|||||||
#define glGenerateMipmap glGenerateMipmapOES
|
#define glGenerateMipmap glGenerateMipmapOES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_FBO
|
||||||
|
|
||||||
|
#if defined(__APPLE__) || defined(HAVE_PSGL)
|
||||||
|
#define GL_RGBA32F GL_RGBA32F_ARB
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline bool gl_check_error(void)
|
static inline bool gl_check_error(void)
|
||||||
{
|
{
|
||||||
int error = glGetError();
|
int error = glGetError();
|
||||||
|
Loading…
Reference in New Issue
Block a user