comparison src/video/SDL_renderer_gl.c @ 3520:83518f8fcd61

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 61d95a87c327
children 40b9b0177e9a
comparison
equal deleted inserted replaced
3519:1374f9275de9 3520:83518f8fcd61
255 #include "SDL_glfuncs.h" 255 #include "SDL_glfuncs.h"
256 #undef SDL_PROC 256 #undef SDL_PROC
257 return 0; 257 return 0;
258 } 258 }
259 259
260 void
261 GL_AddRenderDriver(_THIS)
262 {
263 if (_this->GL_CreateContext) {
264 SDL_AddRenderDriver(0, &GL_RenderDriver);
265 }
266 }
267
268 SDL_Renderer * 260 SDL_Renderer *
269 GL_CreateRenderer(SDL_Window * window, Uint32 flags) 261 GL_CreateRenderer(SDL_Window * window, Uint32 flags)
270 { 262 {
271 SDL_Renderer *renderer; 263 SDL_Renderer *renderer;
272 GL_RenderData *data; 264 GL_RenderData *data;