src/render/direct3d/SDL_render_d3d.c
changeset 12898 89b3e1e9839c
parent 12835 706e38de05c9
child 12900 9d3f245739f8
equal deleted inserted replaced
12897:25998acc4810 12898:89b3e1e9839c
  1125             }
  1125             }
  1126             data->drawstate.shader = shader;
  1126             data->drawstate.shader = shader;
  1127         }
  1127         }
  1128 
  1128 
  1129         data->drawstate.texture = texture;
  1129         data->drawstate.texture = texture;
       
  1130     } else if (texture) {
       
  1131         D3D_TextureData *texturedata = (D3D_TextureData *) texture->driverdata;
       
  1132         UpdateDirtyTexture(data->device, &texturedata->texture);
       
  1133         if (texturedata->yuv) {
       
  1134             UpdateDirtyTexture(data->device, &texturedata->utexture);
       
  1135             UpdateDirtyTexture(data->device, &texturedata->vtexture);
       
  1136         }
  1130     }
  1137     }
  1131 
  1138 
  1132     if (blend != data->drawstate.blend) {
  1139     if (blend != data->drawstate.blend) {
  1133         if (blend == SDL_BLENDMODE_NONE) {
  1140         if (blend == SDL_BLENDMODE_NONE) {
  1134             IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE, FALSE);
  1141             IDirect3DDevice9_SetRenderState(data->device, D3DRS_ALPHABLENDENABLE, FALSE);