|
|
@ -501,6 +501,16 @@ void GL_SwapBuffers() |
|
|
|
|
|
|
|
|
|
|
|
int GL_SetAttribute( int attr, int val ) |
|
|
|
int GL_SetAttribute( int attr, int val ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
switch( attr ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
case REF_GL_CONTEXT_PROFILE_MASK: |
|
|
|
|
|
|
|
if( val == REF_GL_CONTEXT_PROFILE_ES ) |
|
|
|
|
|
|
|
SDL_SetHint( SDL_HINT_OPENGL_ES_DRIVER, "1" ); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return SDL_GL_SetAttribute( (SDL_GLattr)attr, val ); |
|
|
|
return SDL_GL_SetAttribute( (SDL_GLattr)attr, val ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|