src/render/opengl/SDL_render_gl.c
changeset 6237 240f1bced46b
parent 6232 37e8d0736366
child 6246 c70ec935a4bb
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Thu Jan 19 20:25:09 2012 -0500
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Thu Jan 19 21:06:47 2012 -0500
     1.3 @@ -76,7 +76,7 @@
     1.4      GL_CreateRenderer,
     1.5      {
     1.6       "opengl",
     1.7 -     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
     1.8 +     (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE),
     1.9       1,
    1.10       {SDL_PIXELFORMAT_ARGB8888},
    1.11       0,
    1.12 @@ -321,7 +321,7 @@
    1.13      renderer->DestroyTexture = GL_DestroyTexture;
    1.14      renderer->DestroyRenderer = GL_DestroyRenderer;
    1.15      renderer->info = GL_RenderDriver.info;
    1.16 -    renderer->info.flags = SDL_RENDERER_ACCELERATED;
    1.17 +    renderer->info.flags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
    1.18      renderer->driverdata = data;
    1.19      renderer->window = window;
    1.20