mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
ddraw: Don't try to create surfaces for wined3d internal textures.
This commit is contained in:
parent
b540277cc7
commit
d30720d825
@ -4733,8 +4733,8 @@ static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent
|
||||
TRACE("device_parent %p, container_parent %p, surface %p, parent %p, parent_ops %p.\n",
|
||||
device_parent, container_parent, surface, parent, parent_ops);
|
||||
|
||||
/* We have a swapchain texture. */
|
||||
if (container_parent == ddraw)
|
||||
/* We have a swapchain or wined3d internal texture. */
|
||||
if (!container_parent || container_parent == ddraw)
|
||||
{
|
||||
*parent = NULL;
|
||||
*parent_ops = &ddraw_null_wined3d_parent_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user