mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
wined3d: Fix ddraw-opengl surface free bug.
This commit is contained in:
parent
8cb25a4e2d
commit
63c06b4b38
@ -366,7 +366,7 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release(IWineD3DSurface *iface) {
|
||||
* the primary render target exists. Otherwise lastActiveRenderTarget is garbage, see above.
|
||||
* When destroying the primary rt, Uninit3D will activate a context before doing anything
|
||||
*/
|
||||
if(device->render_targets[0]) {
|
||||
if(device->render_targets && device->render_targets[0]) {
|
||||
ActivateContext(device, device->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user