1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 20:25:47 +00:00

Refactor some HAVE_X11/HAVE_EGL code

This commit is contained in:
twinaphex 2015-04-16 22:39:28 +02:00
parent 182c4e5e37
commit 27661c8087
2 changed files with 11 additions and 8 deletions

View File

@ -1197,7 +1197,7 @@ static void gl_init_textures(gl_t *gl, const video_info_t *video)
(void)texture_fmt;
#if defined(HAVE_EGL) && defined(HAVE_OPENGLES2)
// Use regular textures if we use HW render.
/* Use regular textures if we use HW render. */
gl->egl_images = !gl->hw_render_use && gl_check_eglimage_proc() &&
gfx_ctx_image_buffer_init(gl, video);
#else

View File

@ -116,13 +116,7 @@ VIDEO CONTEXT
#if defined(HAVE_VIDEOCORE)
#include "../gfx/drivers_context/vc_egl_ctx.c"
#endif
#if defined(HAVE_X11) && !defined(HAVE_OPENGLES)
#include "../gfx/drivers_context/glx_ctx.c"
#endif
#if defined(HAVE_EGL)
#include "../gfx/drivers_context/xegl_ctx.c"
#endif
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/drivers_context/wgl_ctx.c"
@ -131,8 +125,17 @@ VIDEO CONTEXT
#endif
#ifdef HAVE_X11
#if defined(HAVE_X11)
#include "../gfx/common/x11_common.c"
#ifndef HAVE_OPENGLES
#include "../gfx/drivers_context/glx_ctx.c"
#endif
#ifdef HAVE_EGL
#include "../gfx/drivers_context/xegl_ctx.c"
#endif
#endif