mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Fix linux/EGL build
This commit is contained in:
parent
bf9d540082
commit
cb3344c629
@ -66,7 +66,7 @@ Install appropriate libs as required. For ubuntu these are: libx11-dev, libgl1-m
|
|||||||
##### Raspberry pi
|
##### Raspberry pi
|
||||||
Although the regular linux compiliation flags will work fine, to take full advantage of the hardware:
|
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)
|
#### Mac OSX (32 bit)
|
||||||
|
|
||||||
|
@ -3695,7 +3695,7 @@ static XVisualInfo GLContext_SelectVisual(struct GraphicsMode* mode) {
|
|||||||
cc_result res;
|
cc_result res;
|
||||||
|
|
||||||
res = XMatchVisualInfo(win_display, win_screen, 24, TrueColor, &info);
|
res = XMatchVisualInfo(win_display, win_screen, 24, TrueColor, &info);
|
||||||
if (res) Logger_Abort(res, "Selecting visual");
|
if (!res) Logger_Abort("Selecting visual");
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user