src/video/directfb/SDL_DirectFB_opengl.c
changeset 5199 164f20ba08eb
parent 4636 b196d2758026
child 5262 b530ef003506
     1.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c	Sat Feb 05 16:02:30 2011 -0800
     1.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c	Sat Feb 05 16:07:10 2011 -0800
     1.3 @@ -13,17 +13,27 @@
     1.4      Lesser General Public License for more details.
     1.5  
     1.6      You should have received a copy of the GNU Lesser General Public
     1.7 -    License along with _this library; if not, write to the Free Software
     1.8 +    License along with this library; if not, write to the Free Software
     1.9      Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.10  
    1.11      Sam Lantinga
    1.12      slouken@libsdl.org
    1.13 +
    1.14 +    SDL1.3 DirectFB driver by couriersud@arcor.de
    1.15 +	
    1.16  */
    1.17 -#include "SDL_config.h"
    1.18  
    1.19  #include "SDL_DirectFB_video.h"
    1.20  
    1.21  #if SDL_DIRECTFB_OPENGL
    1.22 +#include "SDL_DirectFB_opengl.h"
    1.23 +#include "SDL_DirectFB_window.h"
    1.24 +
    1.25 +#include <directfbgl.h>
    1.26 +#include "SDL_loadso.h"
    1.27 +#endif
    1.28 +
    1.29 +#if SDL_DIRECTFB_OPENGL
    1.30  
    1.31  struct SDL_GLDriverData
    1.32  {
    1.33 @@ -177,7 +187,7 @@
    1.34      SDL_DFB_WINDOWDATA(window);
    1.35      DirectFB_GLContext *context;
    1.36  
    1.37 -    SDL_DFB_CALLOC(context, 1, sizeof(DirectFB_GLContext));
    1.38 +    SDL_DFB_ALLOC_CLEAR(context, sizeof(DirectFB_GLContext));
    1.39  
    1.40      SDL_DFB_CHECKERR(windata->surface->GetGL(windata->surface,
    1.41                                               &context->context));