Commit b8c98f87 authored by SR_team's avatar SR_team 💬

remove self assign

parent a2e545ad
......@@ -2,12 +2,12 @@
#include <assert.h>
#include <d3dx9.h>
#ifndef DXSDK_FOR_VS
#include <dxerr9.h>
# include <dxerr9.h>
#else
#include <DxErr.h>
# include <DxErr.h>
#endif
template< typename T > bool safe_release( T &d ) {
template<typename T> bool safe_release( T &d ) {
if ( d != nullptr ) {
d->Release();
d = nullptr;
......@@ -18,16 +18,15 @@ template< typename T > bool safe_release( T &d ) {
}
SRTexture::SRTexture( int width, int height ) {
this->pDevice = pDevice;
textureSize = { width, height };
isReleased = true;
isRenderToTexture = false;
textureSize = { width, height };
isReleased = true;
isRenderToTexture = false;
kIsCalledFirstInitialize = false;
render = new CD3DRender( 256 );
render = new CD3DRender( 256 );
// textureIsInit = false;
pTexture = nullptr;
PP1S = nullptr;
DS = nullptr;
PP1S = nullptr;
DS = nullptr;
_rx = _ry = _rz = 0.0f;
}
......
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