src/render/direct3d/SDL_render_d3d.c
changeset 6237 240f1bced46b
parent 6236 4a7abc1b6b0e
child 6242 096d2698cc27
equal deleted inserted replaced
6236:4a7abc1b6b0e 6237:240f1bced46b
   120 
   120 
   121 SDL_RenderDriver D3D_RenderDriver = {
   121 SDL_RenderDriver D3D_RenderDriver = {
   122     D3D_CreateRenderer,
   122     D3D_CreateRenderer,
   123     {
   123     {
   124      "direct3d",
   124      "direct3d",
   125      (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC),
   125      (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_TARGETTEXTURE),
   126      1,
   126      1,
   127      {SDL_PIXELFORMAT_ARGB8888},
   127      {SDL_PIXELFORMAT_ARGB8888},
   128      0,
   128      0,
   129      0}
   129      0}
   130 };
   130 };
   404     renderer->DestroyTexture = D3D_DestroyTexture;
   404     renderer->DestroyTexture = D3D_DestroyTexture;
   405     renderer->DestroyRenderer = D3D_DestroyRenderer;
   405     renderer->DestroyRenderer = D3D_DestroyRenderer;
   406     renderer->info = D3D_RenderDriver.info;
   406     renderer->info = D3D_RenderDriver.info;
   407     renderer->driverdata = data;
   407     renderer->driverdata = data;
   408 
   408 
   409     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   409     renderer->info.flags = SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
   410 
   410 
   411     SDL_VERSION(&windowinfo.version);
   411     SDL_VERSION(&windowinfo.version);
   412     SDL_GetWindowWMInfo(window, &windowinfo);
   412     SDL_GetWindowWMInfo(window, &windowinfo);
   413 
   413 
   414     window_flags = SDL_GetWindowFlags(window);
   414     window_flags = SDL_GetWindowFlags(window);