src/render/opengles/SDL_render_gles.c
changeset 6237 240f1bced46b
parent 6232 37e8d0736366
child 6246 c70ec935a4bb
equal deleted inserted replaced
6236:4a7abc1b6b0e 6237:240f1bced46b
    87 
    87 
    88 SDL_RenderDriver GLES_RenderDriver = {
    88 SDL_RenderDriver GLES_RenderDriver = {
    89     GLES_CreateRenderer,
    89     GLES_CreateRenderer,
    90     {
    90     {
    91      "opengles",
    91      "opengles",
    92      (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
    92      (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE),
    93      1,
    93      1,
    94      {SDL_PIXELFORMAT_ABGR8888},
    94      {SDL_PIXELFORMAT_ABGR8888},
    95      0,
    95      0,
    96      0}
    96      0}
    97 };
    97 };
   370     renderer->RenderReadPixels = GLES_RenderReadPixels;
   370     renderer->RenderReadPixels = GLES_RenderReadPixels;
   371     renderer->RenderPresent = GLES_RenderPresent;
   371     renderer->RenderPresent = GLES_RenderPresent;
   372     renderer->DestroyTexture = GLES_DestroyTexture;
   372     renderer->DestroyTexture = GLES_DestroyTexture;
   373     renderer->DestroyRenderer = GLES_DestroyRenderer;
   373     renderer->DestroyRenderer = GLES_DestroyRenderer;
   374     renderer->info = GLES_RenderDriver.info;
   374     renderer->info = GLES_RenderDriver.info;
   375     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   375     renderer->info.flags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
   376     renderer->driverdata = data;
   376     renderer->driverdata = data;
   377     renderer->window = window;
   377     renderer->window = window;
   378     renderer->SetTargetTexture = GLES_SetTargetTexture;
   378     renderer->SetTargetTexture = GLES_SetTargetTexture;
   379 
   379 
   380     data->context = SDL_GL_CreateContext(window);
   380     data->context = SDL_GL_CreateContext(window);