Commit 98a07860 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

wined3d: Don't flush in D3D RealizePalette without a palette.

parent c623ffd7
......@@ -3581,9 +3581,10 @@ HRESULT WINAPI IWineD3DSurfaceImpl_RealizePalette(IWineD3DSurface *iface) {
SetDIBColorTable(This->hDC, 0, 256, col);
}
/* Propagate the changes to the drawable.
/* Propagate the changes to the drawable when we have a palette. This function is also called
* when the palette is removed.
* TODO: in case of hardware p8 palettes we should only upload the palette. */
if(This->resource.usage & WINED3DUSAGE_RENDERTARGET)
if(pal && (This->resource.usage & WINED3DUSAGE_RENDERTARGET))
IWineD3DSurface_LoadLocation(iface, SFLAG_INDRAWABLE, NULL);
return WINED3D_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment