[client] egl: remove dependency on SDL

After this PR, EGL functions are now accessed through <EGL/egl.h>
instead of through <SDL2/SDL_egl.h>, removing a pointless dependency
on SDL.
This commit is contained in:
Quantum 2021-02-20 01:45:38 -05:00 committed by Geoffrey McRae
parent 5649d1ad95
commit 39a09ca565
7 changed files with 17 additions and 27 deletions

View file

@ -20,7 +20,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#pragma once
#include <stdbool.h>
#include <SDL2/SDL_egl.h>
#include "interface/renderer.h"

View file

@ -29,10 +29,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <EGL/egl.h>
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
#include <wayland-egl.h>
#endif
#include <assert.h>
#include <string.h>

View file

@ -18,8 +18,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "egldebug.h"
#include <SDL2/SDL_egl.h>
#include <GL/gl.h>
#include <EGL/egl.h>
const char * egl_getErrorStr(void)
{

View file

@ -29,8 +29,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdio.h>
#include <assert.h>
#include <SDL2/SDL_egl.h>
struct EGL_Model
{
bool rebuild;

View file

@ -25,8 +25,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <string.h>
#include <stdio.h>
#include <SDL2/SDL_egl.h>
struct EGL_Shader
{
bool hasShader;

View file

@ -39,8 +39,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define DRM_FORMAT_BGRA1010102 fourcc_code('B', 'A', '3', '0')
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
#include <SDL2/SDL_egl.h>
/* this must be a multiple of 2 */
#define BUFFER_COUNT 4

View file

@ -23,8 +23,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include "shader.h"
#include "common/framebuffer.h"
#include <SDL2/SDL_egl.h>
#include <GL/gl.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
typedef struct EGL_Texture EGL_Texture;