GLES/RPi: Declare internal helper functions static
This commit is contained in:
parent
c23c98562b
commit
7ce066cb8b
|
@ -144,7 +144,7 @@ void ogl_swap_buffers_internal(void)
|
||||||
#define ELEMENT_CHANGE_MASK_RESOURCE (1<<4)
|
#define ELEMENT_CHANGE_MASK_RESOURCE (1<<4)
|
||||||
#define ELEMENT_CHANGE_TRANSFORM (1<<5)
|
#define ELEMENT_CHANGE_TRANSFORM (1<<5)
|
||||||
|
|
||||||
void rpi_destroy_element(void)
|
static void rpi_destroy_element(void)
|
||||||
{
|
{
|
||||||
if (dispman_element != DISPMANX_NO_HANDLE) {
|
if (dispman_element != DISPMANX_NO_HANDLE) {
|
||||||
DISPMANX_UPDATE_HANDLE_T dispman_update;
|
DISPMANX_UPDATE_HANDLE_T dispman_update;
|
||||||
|
@ -158,7 +158,7 @@ void rpi_destroy_element(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int rpi_setup_element(int x, int y, Uint32 video_flags, int update)
|
static int rpi_setup_element(int x, int y, Uint32 video_flags, int update)
|
||||||
{
|
{
|
||||||
// this code is based on the work of Ben O'Steen
|
// this code is based on the work of Ben O'Steen
|
||||||
// http://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/
|
// http://benosteen.wordpress.com/2012/04/27/using-opengl-es-2-0-on-the-raspberry-pi-without-x-windows/
|
||||||
|
@ -269,7 +269,7 @@ int rpi_setup_element(int x, int y, Uint32 video_flags, int update)
|
||||||
#endif // RPI
|
#endif // RPI
|
||||||
|
|
||||||
#ifdef OGLES
|
#ifdef OGLES
|
||||||
void ogles_destroy(void)
|
static void ogles_destroy(void)
|
||||||
{
|
{
|
||||||
if( eglDisplay != EGL_NO_DISPLAY ) {
|
if( eglDisplay != EGL_NO_DISPLAY ) {
|
||||||
eglMakeCurrent(eglDisplay, NULL, NULL, EGL_NO_CONTEXT);
|
eglMakeCurrent(eglDisplay, NULL, NULL, EGL_NO_CONTEXT);
|
||||||
|
|
Loading…
Reference in a new issue