DXGL r332 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r331‎ | r332 | r333 >
Date:18:39, 23 February 2013
Author:admin
Status:new
Tags:
Comment:
Notify parent surface when IDirect3DTexture or IDirect3DTexture2 object is deleted.
Modified paths:
  • /ddraw/glDirect3DTexture.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirect3DTexture.cpp
@@ -31,6 +31,7 @@
3232
3333 glDirect3DTexture2::~glDirect3DTexture2()
3434 {
 35+ glDDS7->d3dt2 = NULL;
3536 glDDS7->Release();
3637 }
3738
@@ -93,6 +94,7 @@
9495 }
9596 glDirect3DTexture1::~glDirect3DTexture1()
9697 {
 98+ glDDS7->d3dt1 = NULL;
9799 glDDS7->Release();
98100 }
99101 HRESULT WINAPI glDirect3DTexture1::QueryInterface(REFIID riid, void** ppvObj)