Skip to content

Commit 373f839

Browse files
authored
Merge pull request #62 from HaydnTrigg/master
D3DDevice recreateVidmemRasters and IDirect3DDevice::CreateTexture undefined behavior
2 parents bb7fb68 + 266a09b commit 373f839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/d3d/d3ddevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ recreateVidmemRasters(void)
11291129
switch(raster->type){
11301130
case Raster::CAMERATEXTURE: {
11311131
int32 levels = Raster::calculateNumLevels(raster->width, raster->height);
1132-
IDirect3DTexture9 *tex;
1132+
IDirect3DTexture9 *tex = nil;
11331133
d3ddevice->CreateTexture(raster->width, raster->height,
11341134
raster->format & Raster::MIPMAP ? levels : 1,
11351135
D3DUSAGE_RENDERTARGET,

0 commit comments

Comments
 (0)