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