comparison src/video/directfb/SDL_DirectFB_opengl.c @ 3013:8cc00819c8d6

Reverted Bob's indent checkin
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jan 2009 21:50:26 +0000
parents 8f4ed5ec2b06
children d72a0dd80e8b
comparison
equal deleted inserted replaced
3012:7e30c2dc7783 3013:8cc00819c8d6
171 DirectFB_GLContext *context; 171 DirectFB_GLContext *context;
172 int ret; 172 int ret;
173 173
174 SDL_DFB_CALLOC(context, 1, sizeof(*context)); 174 SDL_DFB_CALLOC(context, 1, sizeof(*context));
175 175
176 SDL_DFB_CHECKERR(windata-> 176 SDL_DFB_CHECKERR(windata->surface->
177 surface->GetGL(windata->surface, &context->context)); 177 GetGL(windata->surface, &context->context));
178 178
179 if (!context->context) 179 if (!context->context)
180 return NULL; 180 return NULL;
181 181
182 SDL_DFB_CHECKERR(context->context->Unlock(context->context)); 182 SDL_DFB_CHECKERR(context->context->Unlock(context->context));
210 if (windata) { 210 if (windata) {
211 int cw, ch; 211 int cw, ch;
212 212
213 windata->gl_context = NULL; 213 windata->gl_context = NULL;
214 /* Everything is unlocked, check for a resize */ 214 /* Everything is unlocked, check for a resize */
215 SDL_DFB_CHECKERR(windata-> 215 SDL_DFB_CHECKERR(windata->surface->
216 surface->GetSize(windata->surface, &cw, &ch)); 216 GetSize(windata->surface, &cw, &ch));
217 if (cw != window->w || ch != window->h) 217 if (cw != window->w || ch != window->h)
218 SDL_DFB_CHECKERR(windata-> 218 SDL_DFB_CHECKERR(windata->window->
219 window->ResizeSurface(windata->window, window->w, 219 ResizeSurface(windata->window, window->w,
220 window->h)); 220 window->h));
221 } 221 }
222 222
223 if (ctx != NULL) { 223 if (ctx != NULL) {
224 SDL_DFB_CHECKERR(ctx->context->Lock(ctx->context)); 224 SDL_DFB_CHECKERR(ctx->context->Lock(ctx->context));
225 } 225 }
264 else if (devdata->glFlush) 264 else if (devdata->glFlush)
265 devdata->glFlush(); 265 devdata->glFlush();
266 266
267 if (1 || windata->gl_context) { 267 if (1 || windata->gl_context) {
268 /* SDL_DFB_CHECKERR(windata->gl_context->context->Unlock(windata->gl_context->context)); */ 268 /* SDL_DFB_CHECKERR(windata->gl_context->context->Unlock(windata->gl_context->context)); */
269 SDL_DFB_CHECKERR(windata-> 269 SDL_DFB_CHECKERR(windata->surface->
270 surface->Flip(windata->surface, &region, 270 Flip(windata->surface, &region, DSFLIP_ONSYNC));
271 DSFLIP_ONSYNC));
272 /* SDL_DFB_CHECKERR(windata->gl_context->context->Lock(windata->gl_context->context)); */ 271 /* SDL_DFB_CHECKERR(windata->gl_context->context->Lock(windata->gl_context->context)); */
273 272
274 } 273 }
275 274
276 return; 275 return;