(Cheevos) Fix Cheevos

(Wayland) Hopefully finally fix EGL issues
This commit is contained in:
twinaphex 2019-05-30 11:08:00 +02:00
parent 9eecf1302b
commit e680fab6e1
3 changed files with 17 additions and 11 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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