From 266a09b60df99c10e215dabe24bdd6dbe0452a26 Mon Sep 17 00:00:00 2001 From: Haydn Trigg Date: Sun, 21 Feb 2021 14:12:33 +0000 Subject: [PATCH] Fix issue with IDirect3DDevice::CreateTexture failing causing undefined pointer assignment --- src/d3d/d3ddevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d/d3ddevice.cpp b/src/d3d/d3ddevice.cpp index 9b77623..922530c 100644 --- a/src/d3d/d3ddevice.cpp +++ b/src/d3d/d3ddevice.cpp @@ -1129,7 +1129,7 @@ recreateVidmemRasters(void) switch(raster->type){ case Raster::CAMERATEXTURE: { int32 levels = Raster::calculateNumLevels(raster->width, raster->height); - IDirect3DTexture9 *tex; + IDirect3DTexture9 *tex = nil; d3ddevice->CreateTexture(raster->width, raster->height, raster->format & Raster::MIPMAP ? levels : 1, D3DUSAGE_RENDERTARGET,