mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-23 22:17:18 +00:00
[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:
parent
5649d1ad95
commit
39a09ca565
@ -20,7 +20,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
|
|
||||||
#include "interface/renderer.h"
|
#include "interface/renderer.h"
|
||||||
|
|
||||||
|
@ -29,10 +29,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
|
||||||
#if defined(SDL_VIDEO_DRIVER_WAYLAND)
|
|
||||||
#include <wayland-egl.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "egldebug.h"
|
#include "egldebug.h"
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#include <EGL/egl.h>
|
||||||
|
|
||||||
const char * egl_getErrorStr(void)
|
const char * egl_getErrorStr(void)
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
|
|
||||||
struct EGL_Model
|
struct EGL_Model
|
||||||
{
|
{
|
||||||
bool rebuild;
|
bool rebuild;
|
||||||
|
@ -25,8 +25,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
|
|
||||||
struct EGL_Shader
|
struct EGL_Shader
|
||||||
{
|
{
|
||||||
bool hasShader;
|
bool hasShader;
|
||||||
|
@ -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_BGRA1010102 fourcc_code('B', 'A', '3', '0')
|
||||||
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
|
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
|
||||||
|
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
|
|
||||||
/* this must be a multiple of 2 */
|
/* this must be a multiple of 2 */
|
||||||
#define BUFFER_COUNT 4
|
#define BUFFER_COUNT 4
|
||||||
|
|
||||||
|
@ -23,8 +23,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#include "shader.h"
|
#include "shader.h"
|
||||||
#include "common/framebuffer.h"
|
#include "common/framebuffer.h"
|
||||||
|
|
||||||
#include <SDL2/SDL_egl.h>
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#include <EGL/egl.h>
|
||||||
|
#include <EGL/eglext.h>
|
||||||
|
|
||||||
typedef struct EGL_Texture EGL_Texture;
|
typedef struct EGL_Texture EGL_Texture;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user