Fix linux/EGL build

This commit is contained in:
UnknownShadow200 2019-12-15 07:10:19 +11:00
parent bf9d540082
commit cb3344c629
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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