mirror of https://github.com/encounter/SDL.git
Removed dead code
This commit is contained in:
parent
911ba8d343
commit
c6eef542ab
|
@ -713,10 +713,10 @@ D3D_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||||
(void *) ((Uint8 *) texturedata->pixels + rect->y * texturedata->pitch +
|
(void *) ((Uint8 *) texturedata->pixels + rect->y * texturedata->pitch +
|
||||||
rect->x * SDL_BYTESPERPIXEL(texture->format));
|
rect->x * SDL_BYTESPERPIXEL(texture->format));
|
||||||
D3D_UpdateTexture(renderer, texture, rect, pixels, texturedata->pitch);
|
D3D_UpdateTexture(renderer, texture, rect, pixels, texturedata->pitch);
|
||||||
} else {
|
}
|
||||||
#else
|
else
|
||||||
{
|
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
IDirect3DTexture9_UnlockRect(texturedata->texture.staging, 0);
|
IDirect3DTexture9_UnlockRect(texturedata->texture.staging, 0);
|
||||||
texturedata->texture.dirty = SDL_TRUE;
|
texturedata->texture.dirty = SDL_TRUE;
|
||||||
if (data->drawstate.texture == texture) {
|
if (data->drawstate.texture == texture) {
|
||||||
|
@ -724,12 +724,6 @@ D3D_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||||
data->drawstate.shader = NULL;
|
data->drawstate.shader = NULL;
|
||||||
IDirect3DDevice9_SetPixelShader(data->device, NULL);
|
IDirect3DDevice9_SetPixelShader(data->device, NULL);
|
||||||
IDirect3DDevice9_SetTexture(data->device, 0, NULL);
|
IDirect3DDevice9_SetTexture(data->device, 0, NULL);
|
||||||
#if 0
|
|
||||||
if (texturedata->yuv) {
|
|
||||||
IDirect3DDevice9_SetTexture(data->device, 1, NULL);
|
|
||||||
IDirect3DDevice9_SetTexture(data->device, 2, NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue