Adds gl_profile_mask to test framework, uses it in testgles

This commit is contained in:
Gabriel Jacobo 2013-10-10 00:49:57 -03:00
parent f67950da0c
commit c51c4c0733
3 changed files with 5 additions and 2 deletions

View file

@ -695,6 +695,9 @@ SDLTest_CommonInit(SDLTest_CommonState * state)
if (state->gl_debug) {
SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);
}
if (state->gl_profile_mask) {
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, state->gl_profile_mask);
}
if (state->verbose & VERBOSE_MODES) {
SDL_Rect bounds;