src/render/direct3d11/SDL_render_d3d11.cpp
changeset 8423 61f9a3eb6bc8
parent 8420 99dc85ad173c
child 8425 99448fee696f
equal deleted inserted replaced
8422:73abaf9e1fae 8423:61f9a3eb6bc8
   877 static int
   877 static int
   878 D3D11_RenderClear(SDL_Renderer * renderer)
   878 D3D11_RenderClear(SDL_Renderer * renderer)
   879 {
   879 {
   880     D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
   880     D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
   881     const float colorRGBA[] = {
   881     const float colorRGBA[] = {
   882         renderer->r,
   882         (renderer->r / 255.0f),
   883         renderer->g,
   883         (renderer->g / 255.0f),
   884         renderer->b,
   884         (renderer->b / 255.0f),
   885         renderer->a
   885         (renderer->a / 255.0f)
   886     };
   886     };
   887     data->d3dContext->ClearRenderTargetView(
   887     data->d3dContext->ClearRenderTargetView(
   888         data->renderTargetView.Get(),
   888         data->renderTargetView.Get(),
   889         colorRGBA
   889         colorRGBA
   890         );
   890         );