X11 OpenGL ES minor corrections
Scott Percival 2012-01-08 04:21:22 PST I tested the new build on my two ARM machines, and fixed a few bugs: - if SDL_VIDEO_DRIVER_UIKIT, SDL_VIDEO_DRIVER_ANDROID or SDL_VIDEO_DRIVER_PANDORA are specified, function pointers are grabbed from the compile-linked library instead of through SDL_GL_GetProcAddress. (not sure if this is the best way to go about it) - removing "/usr/lib/" from all the library names (hey, with multiarch you can't be too sure anymore) - added glFinish to glesfuncs.h - changed the eglGetProcAddress arg type to "const char *" as per the EGL spec - filled in the stubs for X11_GLES_SetSwapInterval and X11_GLES_GetSwapInterval
This commit is contained in:
parent
73b21090a2
commit
f7ad18f9fc
5 changed files with 55 additions and 13 deletions
|
@ -27,7 +27,7 @@
|
|||
#include "../SDL_sysrender.h"
|
||||
#include "SDL_shaders_gles2.h"
|
||||
|
||||
/* Used to re-create the window with OpenGL capability */
|
||||
/* Used to re-create the window with OpenGL ES capability */
|
||||
extern int SDL_RecreateWindow(SDL_Window * window, Uint32 flags);
|
||||
|
||||
/*************************************************************************************************
|
||||
|
@ -158,7 +158,15 @@ static SDL_GLContext SDL_CurrentContext = NULL;
|
|||
|
||||
static int GLES2_LoadFunctions(GLES2_DriverContext * data)
|
||||
{
|
||||
#ifdef __SDL_NOGETPROCADDR__
|
||||
#if SDL_VIDEO_DRIVER_UIKIT
|
||||
#define __SDL_NOGETPROCADDR__
|
||||
#elif SDL_VIDEO_DRIVER_ANDROID
|
||||
#define __SDL_NOGETPROCADDR__
|
||||
#elif SDL_VIDEO_DRIVER_PANDORA
|
||||
#define __SDL_NOGETPROCADDR__
|
||||
#endif
|
||||
|
||||
#if defined __SDL_NOGETPROCADDR__
|
||||
#define SDL_PROC(ret,func,params) data->func=func;
|
||||
#else
|
||||
#define SDL_PROC(ret,func,params) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue