hide impossible branch in D3D_UnlockTexture

This commit is contained in:
pionere 2022-02-05 12:30:45 +01:00 committed by Sylvain
parent ea5b482bff
commit 911ba8d343
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 2 additions and 0 deletions

View File

@ -724,10 +724,12 @@ D3D_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
data->drawstate.shader = NULL;
IDirect3DDevice9_SetPixelShader(data->device, 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
}
}
}