Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
WinRT: made SDL_RenderClear display the correct color via Direct3D 11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Feb 10, 2013
1 parent fa64b30 commit d5dae6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render/direct3d11/SDL_render_d3d11.cpp
Expand Up @@ -879,10 +879,10 @@ D3D11_RenderClear(SDL_Renderer * renderer)
{
D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
const float colorRGBA[] = {
renderer->r,
renderer->g,
renderer->b,
renderer->a
(renderer->r / 255.0f),
(renderer->g / 255.0f),
(renderer->b / 255.0f),
(renderer->a / 255.0f)
};
data->d3dContext->ClearRenderTargetView(
data->renderTargetView.Get(),
Expand Down

0 comments on commit d5dae6f

Please sign in to comment.