1
0
mirror of https://github.com/aap/librw.git synced 2025-04-08 10:52:55 +01:00

Merge branch 'master' of github.com:aap/librw

This commit is contained in:
aap 2021-02-26 17:20:29 +01:00
commit 4dfaa83f49

@ -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,