- 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();
}
//===========================================================================

View file

@ -42,6 +42,7 @@
#include "colormatcher.h"
#include "r_data/renderstyle.h"
#include "r_data/r_translate.h"
#include "hwrenderer/textures/hw_texmanager.h"
#include <vector>
// 15 because 0th texture is our texture