src/render/direct3d11/SDL_render_d3d11.cpp
changeset 8423 61f9a3eb6bc8
parent 8420 99dc85ad173c
child 8425 99448fee696f
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.cpp	Sun Feb 10 10:39:24 2013 -0500
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Sun Feb 10 17:35:38 2013 -0500
     1.3 @@ -879,10 +879,10 @@
     1.4  {
     1.5      D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
     1.6      const float colorRGBA[] = {
     1.7 -        renderer->r,
     1.8 -        renderer->g,
     1.9 -        renderer->b,
    1.10 -        renderer->a
    1.11 +        (renderer->r / 255.0f),
    1.12 +        (renderer->g / 255.0f),
    1.13 +        (renderer->b / 255.0f),
    1.14 +        (renderer->a / 255.0f)
    1.15      };
    1.16      data->d3dContext->ClearRenderTargetView(
    1.17          data->renderTargetView.Get(),