mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-28 05:50:21 +00:00
Attempt to fix build with SDL 2.26 on systems with old GL headers
This commit is contained in:
parent
b9709d0825
commit
68c6d6c932
3 changed files with 4 additions and 3 deletions
|
@ -10,8 +10,6 @@
|
||||||
#include <Limelight.h>
|
#include <Limelight.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <SDL_egl.h>
|
|
||||||
#include <SDL_opengles2.h>
|
|
||||||
#include <SDL_render.h>
|
#include <SDL_render.h>
|
||||||
#include <SDL_syswm.h>
|
#include <SDL_syswm.h>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
#include "renderer.h"
|
#include "renderer.h"
|
||||||
|
|
||||||
|
#define SDL_USE_BUILTIN_OPENGL_DEFINITIONS 1
|
||||||
|
#include <SDL_egl.h>
|
||||||
#include <SDL_opengles2.h>
|
#include <SDL_opengles2.h>
|
||||||
#include <SDL_opengles2_gl2ext.h>
|
|
||||||
|
|
||||||
class EGLRenderer : public IFFmpegRenderer {
|
class EGLRenderer : public IFFmpegRenderer {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define SDL_USE_BUILTIN_OPENGL_DEFINITIONS 1
|
||||||
|
|
||||||
#include <SDL_egl.h>
|
#include <SDL_egl.h>
|
||||||
#include <SDL_opengles2.h>
|
#include <SDL_opengles2.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue