src/video/win32/SDL_d3drender.c
changeset 1918 092bd3a019c5
parent 1917 3f54b3ec5a07
child 1920 8a162bfdc838
     1.1 --- a/src/video/win32/SDL_d3drender.c	Wed Jul 19 05:45:42 2006 +0000
     1.2 +++ b/src/video/win32/SDL_d3drender.c	Wed Jul 19 07:18:45 2006 +0000
     1.3 @@ -62,9 +62,13 @@
     1.4       "d3d",
     1.5       (SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy |
     1.6        SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 |
     1.7 -      SDL_Renderer_PresentDiscard | SDL_Renderer_PresentVSync),
     1.8 -     (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | SDL_TextureBlendMode_Blend),      /* FIXME */
     1.9 -     (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast),   /* FIXME */
    1.10 +      SDL_Renderer_PresentDiscard | SDL_Renderer_PresentVSync |
    1.11 +      SDL_Renderer_Accelerated),
    1.12 +     (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask |
    1.13 +      SDL_TextureBlendMode_Blend | SDL_TextureBlendMode_Add |
    1.14 +      SDL_TextureBlendMode_Mod),
    1.15 +     (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast |
    1.16 +      SDL_TextureScaleMode_Best),
    1.17       12,
    1.18       {
    1.19        SDL_PixelFormat_Index8,
    1.20 @@ -353,6 +357,8 @@
    1.21          renderer->info.flags |= SDL_Renderer_PresentVSync;
    1.22      }
    1.23  
    1.24 +    /* FIXME: Query maximum texture size */
    1.25 +
    1.26      /* Set up parameters for rendering */
    1.27      IDirect3DDevice9_SetVertexShader(data->device, NULL);
    1.28      IDirect3DDevice9_SetFVF(data->device, D3DFVF_XYZRHW | D3DFVF_TEX1);