- minor cleanup and allow FHardwareTexture to restore the old bindings after creating a texture.

This commit is contained in:
Christoph Oelckers 2018-12-11 19:56:23 +01:00
commit 86d851bc5c
4 changed files with 11 additions and 5 deletions

View file

@ -774,7 +774,7 @@ FWrapperTexture::FWrapperTexture(int w, int h, int bits)
Format = bits;
UseType = ETextureType::SWCanvas;
bNoCompress = true;
SystemTexture[0] = screen->CreateHardwareTexture(this);
SystemTexture[0] = screen->CreateHardwareTexture();
}
//===========================================================================