Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Raspberry Pi support #373

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removing some unnecessary code.
techyian committed Jun 18, 2019
commit e0724ecf3fc3b0ed41d1662b2b4a0fcc698c672f
8 changes: 0 additions & 8 deletions cmake/ETLSetupFeatures.cmake
Original file line number Diff line number Diff line change
@@ -59,14 +59,6 @@ if(BUILD_CLIENT)
find_package(GLES REQUIRED)
list(APPEND RENDERER_LIBRARIES ${GLES_LIBRARY})
include_directories(SYSTEM ${GLES_INCLUDE_DIR})

if (ARM AND RPI)
LIST(APPEND CLIENT_LIBRARIES
brcmEGL
brcmGLESv2
${GLES_LIBRARY}
)
endif()
endif()

if(NOT BUNDLED_SDL)
9 changes: 4 additions & 5 deletions docs/INSTALL.txt
Original file line number Diff line number Diff line change
@@ -106,7 +106,8 @@ In order to use full OpenGL, use the following instructions:
2. Modify "easybuild.sh" file and set the "FEATURE_RENDERER_GLES" flag to 0 under the "RPI" section.
3. If building SDL from source, ensure you have passed "--host=armv7l-raspberry-linux-gnueabihf" when calling the
configure command. Otherwise, keep "BUNDLED_SDL=1" in "easybuild.sh".
4. Run "./easybuild.sh -RPI -j4" to build for Raspberry Pi.
4. Increase GPU memory split to at least 192mb.
5. Run "./easybuild.sh -RPI -j4" to build for Raspberry Pi.

In order to use OpenGL ES, use the following instructions:

@@ -116,10 +117,8 @@ In order to use OpenGL ES, use the following instructions:
"--host=armv7l-raspberry-linux-gnueabihf --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio \
--disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl"
when calling the configure command. This will ensure SDL is built with an OpenGL ES backend. Otherwise, keep "BUNDLED_SDL=1" in "easybuild.sh".
4. Run "./easybuild.sh -RPI -j4" to build for Raspberry Pi.

Note: It is important you exit from X11 when loading the OpenGL ES version of ET: Legacy in order to use full hardware
accelerated GLES.
4. Increase GPU memory split to at least 192mb.
5. Run "./easybuild.sh -RPI -j4" to build for Raspberry Pi.



1 change: 0 additions & 1 deletion src/renderercommon/qgl.h
Original file line number Diff line number Diff line change
@@ -38,7 +38,6 @@

#ifdef FEATURE_RENDERER_GLES
# include <GLES/gl.h>
# include <EGL/egl.h>
#else
# ifdef BUNDLED_GLEW
# include "GL/glew.h"
4 changes: 0 additions & 4 deletions src/sdl/sdl_glimp.c
Original file line number Diff line number Diff line change
@@ -53,10 +53,6 @@ static int gammaResetTime = 0;
#endif
#endif // __APPLE__

#ifdef FEATURE_RENDERER_GLES
# include <EGL/egl.h>
#endif

SDL_Window *main_window = NULL;
static SDL_Renderer *main_renderer = NULL;
static SDL_GLContext SDL_glContext = NULL;