mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 18:40:09 +00:00
[ANGLE] Add HAVE_ANGLE
This commit is contained in:
parent
a8a4e60171
commit
105fadd668
@ -46,9 +46,12 @@
|
||||
#include "../../frontend/frontend_driver.h"
|
||||
|
||||
#include "../common/egl_common.h"
|
||||
#include "../common/angle_common.h"
|
||||
#include "../common/gl_common.h"
|
||||
|
||||
#ifdef HAVE_ANGLE
|
||||
#include "../common/angle_common.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DYNAMIC
|
||||
static dylib_t dll_handle = NULL; /* Handle to libGLESv2.dll */
|
||||
#endif
|
||||
@ -84,8 +87,13 @@ bool create_gles_context(void* corewindow)
|
||||
EGL_NONE
|
||||
};
|
||||
|
||||
#ifdef HAVE_ANGLE
|
||||
if (!angle_init_context(&uwp_egl, EGL_DEFAULT_DISPLAY,
|
||||
&major, &minor, &n, attribs, NULL))
|
||||
#else
|
||||
if (!egl_init_context(&uwp_egl, EGL_NONE, EGL_DEFAULT_DISPLAY,
|
||||
&major, &minor, &n, attribs, NULL))
|
||||
#endif
|
||||
{
|
||||
egl_report_error();
|
||||
goto error;
|
||||
|
@ -49,8 +49,10 @@
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
#include "../common/egl_common.h"
|
||||
#ifdef HAVE_ANGLE
|
||||
#include "../common/angle_common.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
||||
#include "../common/gl_common.h"
|
||||
@ -387,8 +389,13 @@ static void create_gles_context(HWND hwnd, bool *quit)
|
||||
EGL_NONE
|
||||
};
|
||||
|
||||
#ifdef HAVE_ANGLE
|
||||
if (!angle_init_context(&win32_egl, EGL_DEFAULT_DISPLAY,
|
||||
&major, &minor, &n, attribs, NULL))
|
||||
#else
|
||||
if (!egl_init_context(&win32_egl, EGL_NONE, EGL_DEFAULT_DISPLAY,
|
||||
&major, &minor, &n, attribs, NULL))
|
||||
#endif
|
||||
{
|
||||
egl_report_error();
|
||||
goto error;
|
||||
|
@ -27,6 +27,18 @@
|
||||
#define HAVE_COMPRESSION 1
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENGL) && defined(HAVE_ANGLE)
|
||||
#ifndef HAVE_OPENGLES
|
||||
#define HAVE_OPENGLES 1
|
||||
#endif
|
||||
#if !defined(HAVE_OPENGLES3) && !defined(HAVE_OPENGLES2)
|
||||
#define HAVE_OPENGLES3 1
|
||||
#endif
|
||||
#ifndef HAVE_EGL
|
||||
#define HAVE_EGL 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define JSON_STATIC 1 /* must come before runtime_file, netplay_room_parse and jsonsax_full */
|
||||
|
||||
#if _MSC_VER && !defined(__WINRT__)
|
||||
@ -275,7 +287,7 @@ VIDEO CONTEXT
|
||||
#include "../gfx/drivers_context/vc_egl_ctx.c"
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32) && defined(HAVE_ANGLE)
|
||||
#include "../gfx/common/angle_common.c"
|
||||
#endif
|
||||
|
||||
|
@ -23,6 +23,18 @@
|
||||
#include <compat/posix_string.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENGL) && defined(HAVE_ANGLE)
|
||||
#ifndef HAVE_OPENGLES
|
||||
#define HAVE_OPENGLES 1
|
||||
#endif
|
||||
#if !defined(HAVE_OPENGLES3) && !defined(HAVE_OPENGLES2)
|
||||
#define HAVE_OPENGLES3 1
|
||||
#endif
|
||||
#ifndef HAVE_EGL
|
||||
#define HAVE_EGL 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*============================================================
|
||||
MENU
|
||||
============================================================ */
|
||||
|
@ -22,6 +22,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENGL) && defined(HAVE_ANGLE)
|
||||
#ifndef HAVE_EGL
|
||||
#define HAVE_EGL 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_EGL
|
||||
#include "../gfx/common/egl_common.h"
|
||||
bool uwp_egl_create_surface(egl_ctx_data_t* egl);
|
||||
|
@ -29,6 +29,12 @@
|
||||
#include <collection.h>
|
||||
#include <windows.devices.enumeration.h>
|
||||
|
||||
#if defined(HAVE_OPENGL) && defined(HAVE_ANGLE)
|
||||
#ifndef HAVE_EGL
|
||||
#define HAVE_EGL 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using namespace RetroArchUWP;
|
||||
|
||||
using namespace concurrency;
|
||||
|
Loading…
x
Reference in New Issue
Block a user