- separated the image converters from the texture offsets.
Mostly done, except for FMultiPatchTexture and FFontChar1 + 2. Note that this commit leaks those image objects!
This commit is contained in:
parent
5eab944157
commit
583a740441
21 changed files with 90 additions and 184 deletions
|
|
@ -49,8 +49,9 @@
|
|||
#include "hwrenderer/textures/hw_ihwtexture.h"
|
||||
#include "swrenderer/textures/r_swtexture.h"
|
||||
#include "imagehelpers.h"
|
||||
#include "image.h"
|
||||
|
||||
FTexture *CreateBrightmapTexture(FTexture*);
|
||||
FTexture *CreateBrightmapTexture(FImageSource*);
|
||||
|
||||
// Make sprite offset adjustment user-configurable per renderer.
|
||||
int r_spriteadjustSW, r_spriteadjustHW;
|
||||
|
|
@ -537,7 +538,7 @@ void FTexture::CreateDefaultBrightmap()
|
|||
{
|
||||
// Create a brightmap
|
||||
DPrintf(DMSG_NOTIFY, "brightmap created for texture '%s'\n", Name.GetChars());
|
||||
Brightmap = CreateBrightmapTexture(this);
|
||||
Brightmap = CreateBrightmapTexture(static_cast<FImageTexture*>(this)->GetImage());
|
||||
bBrightmapChecked = true;
|
||||
TexMan.AddTexture(Brightmap);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue