From cb3344c6291bd927520dcdde252eeb33f30ab1af Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 15 Dec 2019 07:10:19 +1100 Subject: [PATCH] Fix linux/EGL build --- readme.md | 2 +- src/Window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 38daa01d2..de23e468e 100644 --- a/readme.md +++ b/readme.md @@ -66,7 +66,7 @@ Install appropriate libs as required. For ubuntu these are: libx11-dev, libgl1-m ##### Raspberry pi Although the regular linux compiliation flags will work fine, to take full advantage of the hardware: -```gcc *.c -o ClassiCube -DCC_BUILD_GLMODERN -DCC_BUILD_GLES -DCC_BUILD_EGL -lm -lpthread -lX11 -lEGL -lGLESv1 -lcurl -lopenal -ldl``` +```gcc *.c -o ClassiCube -DCC_BUILD_GLMODERN -DCC_BUILD_GLES -DCC_BUILD_EGL -lm -lpthread -lX11 -lEGL -lGLESv2 -lcurl -lopenal -ldl``` #### Mac OSX (32 bit) diff --git a/src/Window.c b/src/Window.c index f995bfab6..80042a031 100644 --- a/src/Window.c +++ b/src/Window.c @@ -3695,7 +3695,7 @@ static XVisualInfo GLContext_SelectVisual(struct GraphicsMode* mode) { cc_result res; res = XMatchVisualInfo(win_display, win_screen, 24, TrueColor, &info); - if (res) Logger_Abort(res, "Selecting visual"); + if (!res) Logger_Abort("Selecting visual"); return info; } #endif