Reverted Bob's indent checkin
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403475
This commit is contained in:
parent
e32916c7f0
commit
d123950aa3
33 changed files with 501 additions and 659 deletions
|
@ -173,8 +173,8 @@ DirectFB_GL_CreateContext(_THIS, SDL_Window * window)
|
|||
|
||||
SDL_DFB_CALLOC(context, 1, sizeof(*context));
|
||||
|
||||
SDL_DFB_CHECKERR(windata->
|
||||
surface->GetGL(windata->surface, &context->context));
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
GetGL(windata->surface, &context->context));
|
||||
|
||||
if (!context->context)
|
||||
return NULL;
|
||||
|
@ -212,12 +212,12 @@ DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
|||
|
||||
windata->gl_context = NULL;
|
||||
/* Everything is unlocked, check for a resize */
|
||||
SDL_DFB_CHECKERR(windata->
|
||||
surface->GetSize(windata->surface, &cw, &ch));
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
GetSize(windata->surface, &cw, &ch));
|
||||
if (cw != window->w || ch != window->h)
|
||||
SDL_DFB_CHECKERR(windata->
|
||||
window->ResizeSurface(windata->window, window->w,
|
||||
window->h));
|
||||
SDL_DFB_CHECKERR(windata->window->
|
||||
ResizeSurface(windata->window, window->w,
|
||||
window->h));
|
||||
}
|
||||
|
||||
if (ctx != NULL) {
|
||||
|
@ -266,9 +266,8 @@ DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
|
|||
|
||||
if (1 || windata->gl_context) {
|
||||
/* SDL_DFB_CHECKERR(windata->gl_context->context->Unlock(windata->gl_context->context)); */
|
||||
SDL_DFB_CHECKERR(windata->
|
||||
surface->Flip(windata->surface, ®ion,
|
||||
DSFLIP_ONSYNC));
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
Flip(windata->surface, ®ion, DSFLIP_ONSYNC));
|
||||
/* SDL_DFB_CHECKERR(windata->gl_context->context->Lock(windata->gl_context->context)); */
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue