mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
ZlutTexture and PaletteTexture do nothing if image textures not supported.
This commit is contained in:
parent
210c9ea64a
commit
dc35b3a0fe
|
@ -19,6 +19,9 @@ PaletteTexture::PaletteTexture()
|
|||
|
||||
void PaletteTexture::init()
|
||||
{
|
||||
if (!Context::imageTextures)
|
||||
return;
|
||||
|
||||
m_paletteCRC256 = 0;
|
||||
m_pTexture = textureCache().addFrameBufferTexture(false);
|
||||
m_pTexture->format = G_IM_FMT_IA;
|
||||
|
@ -66,6 +69,9 @@ void PaletteTexture::init()
|
|||
|
||||
void PaletteTexture::destroy()
|
||||
{
|
||||
if (!Context::imageTextures)
|
||||
return;
|
||||
|
||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||
|
||||
Context::BindImageTextureParameters bindParams;
|
||||
|
@ -83,6 +89,9 @@ void PaletteTexture::destroy()
|
|||
|
||||
void PaletteTexture::update()
|
||||
{
|
||||
if (!Context::imageTextures)
|
||||
return;
|
||||
|
||||
if (m_paletteCRC256 == gDP.paletteCRC256)
|
||||
return;
|
||||
|
||||
|
|
|
@ -16,6 +16,9 @@ ZlutTexture::ZlutTexture()
|
|||
|
||||
void ZlutTexture::init()
|
||||
{
|
||||
if (!Context::imageTextures)
|
||||
return;
|
||||
|
||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||
|
||||
const void * zLUT;
|
||||
|
@ -66,6 +69,9 @@ void ZlutTexture::init()
|
|||
}
|
||||
|
||||
void ZlutTexture::destroy() {
|
||||
if (!Context::imageTextures)
|
||||
return;
|
||||
|
||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||
|
||||
Context::BindImageTextureParameters bindParams;
|
||||
|
|
Loading…
Reference in New Issue
Block a user