Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_opengl.c @ 2998:d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
From: Couriersud
Subject: SDL1.3 DirectFB patches
The attached contains the following directfb changes:
- Dynamic loading of libdirectfb.so. This may to turned off as well in configure
- Use linux-input by default. May be switched off by environment variable.
- Added some code which will use directfb's x11 backend when DISPLAY is set.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2009 23:43:33 +0000 |
parents | 99210400e8b9 |
children | 8f4ed5ec2b06 |
comparison
equal
deleted
inserted
replaced
2997:e4f025078c1c | 2998:d364ee9b9c15 |
---|---|
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->surface-> | 176 SDL_DFB_CHECKERR(windata->surface-> |
177 GetGL(windata->surface, &context->context)); | 177 GetGL(windata->surface, &context->context)); |
178 | |
179 if (!context->context) | |
180 return NULL; | |
181 | |
178 SDL_DFB_CHECKERR(context->context->Unlock(context->context)); | 182 SDL_DFB_CHECKERR(context->context->Unlock(context->context)); |
179 | 183 |
180 context->next = _this->gl_data->firstgl; | 184 context->next = _this->gl_data->firstgl; |
181 _this->gl_data->firstgl = context; | 185 _this->gl_data->firstgl = context; |
182 | 186 |