mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Remove silly heap allocation of a null pointer
This commit is contained in:
parent
f1f06da75f
commit
09df2d8bef
1 changed files with 2 additions and 3 deletions
|
@ -475,9 +475,8 @@ void CBloomEffect::endInterfacesDisplayBloom() // clientcfg
|
||||||
return;
|
return;
|
||||||
|
|
||||||
NL3D::IDriver *drvInternal = ((CDriverUser *) _Driver)->getDriver();
|
NL3D::IDriver *drvInternal = ((CDriverUser *) _Driver)->getDriver();
|
||||||
CTextureUser *txt = new CTextureUser();
|
CTextureUser txtNull;
|
||||||
((CDriverUser *)_Driver)->setRenderTarget(*txt, 0, 0, 0, 0);
|
((CDriverUser *)_Driver)->setRenderTarget(txtNull, 0, 0, 0, 0);
|
||||||
delete txt;
|
|
||||||
|
|
||||||
// initialize texture coordinates
|
// initialize texture coordinates
|
||||||
float newU = drvInternal->isTextureRectangle(_InitText) ? (float)_WndWidth : 1.f;
|
float newU = drvInternal->isTextureRectangle(_InitText) ? (float)_WndWidth : 1.f;
|
||||||
|
|
Loading…
Reference in a new issue