mirror of
https://github.com/aap/librw.git
synced 2024-11-28 06:35:41 +00:00
Fix issue with IDirect3DDevice::CreateTexture failing causing undefined pointer assignment
This commit is contained in:
parent
bb7fb68531
commit
266a09b60d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user