mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-18 00:18:22 +00:00
(Cheevos) Fix Cheevos
(Wayland) Hopefully finally fix EGL issues
This commit is contained in:
parent
9eecf1302b
commit
e680fab6e1
@ -1846,26 +1846,32 @@ static bool gfx_ctx_wl_bind_api(void *video_driver,
|
||||
if ((major * 1000 + minor) >= 3001)
|
||||
return false;
|
||||
#endif
|
||||
return eglBindAPI(EGL_OPENGL_API);
|
||||
#else
|
||||
break;
|
||||
#ifdef HAVE_EGL
|
||||
if (eglBindAPI(EGL_OPENGL_API) == EGL_TRUE)
|
||||
return true;
|
||||
#endif
|
||||
#endif
|
||||
break;
|
||||
case GFX_CTX_OPENGL_ES_API:
|
||||
#ifdef HAVE_OPENGLES
|
||||
#ifndef EGL_KHR_create_context
|
||||
if (major >= 3)
|
||||
return false;
|
||||
#endif
|
||||
return eglBindAPI(EGL_OPENGL_ES_API);
|
||||
#else
|
||||
break;
|
||||
#ifdef HAVE_EGL
|
||||
if (eglBindAPI(EGL_OPENGL_ES_API) == EGL_TRUE)
|
||||
return true;
|
||||
#endif
|
||||
#endif
|
||||
break;
|
||||
case GFX_CTX_OPENVG_API:
|
||||
#ifdef HAVE_VG
|
||||
return eglBindAPI(EGL_OPENVG_API);
|
||||
#else
|
||||
break;
|
||||
#ifdef HAVE_EGL
|
||||
if (eglBindAPI(EGL_OPENVG_API) == EGL_TRUE)
|
||||
return true;
|
||||
#endif
|
||||
#endif
|
||||
break;
|
||||
case GFX_CTX_VULKAN_API:
|
||||
#ifdef HAVE_VULKAN
|
||||
return true;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "../../menu_driver.h"
|
||||
|
||||
#include "../../../cheevos/badges.h"
|
||||
#include "../../../cheevos-new/badges.h"
|
||||
#include "../../../verbosity.h"
|
||||
|
||||
menu_texture_item ozone_entries_icon_get_texture(ozone_handle_t *ozone,
|
||||
|
@ -62,7 +62,7 @@
|
||||
|
||||
#include "../../tasks/tasks_internal.h"
|
||||
|
||||
#include "../../cheevos/badges.h"
|
||||
#include "../../cheevos-new/badges.h"
|
||||
#include "../../content.h"
|
||||
|
||||
#define XMB_RIBBON_ROWS 64
|
||||
|
Loading…
x
Reference in New Issue
Block a user