mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
Refactor some HAVE_X11/HAVE_EGL code
This commit is contained in:
parent
182c4e5e37
commit
27661c8087
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user