mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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()
|
void PaletteTexture::init()
|
||||||
{
|
{
|
||||||
|
if (!Context::imageTextures)
|
||||||
|
return;
|
||||||
|
|
||||||
m_paletteCRC256 = 0;
|
m_paletteCRC256 = 0;
|
||||||
m_pTexture = textureCache().addFrameBufferTexture(false);
|
m_pTexture = textureCache().addFrameBufferTexture(false);
|
||||||
m_pTexture->format = G_IM_FMT_IA;
|
m_pTexture->format = G_IM_FMT_IA;
|
||||||
|
@ -66,6 +69,9 @@ void PaletteTexture::init()
|
||||||
|
|
||||||
void PaletteTexture::destroy()
|
void PaletteTexture::destroy()
|
||||||
{
|
{
|
||||||
|
if (!Context::imageTextures)
|
||||||
|
return;
|
||||||
|
|
||||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||||
|
|
||||||
Context::BindImageTextureParameters bindParams;
|
Context::BindImageTextureParameters bindParams;
|
||||||
|
@ -83,6 +89,9 @@ void PaletteTexture::destroy()
|
||||||
|
|
||||||
void PaletteTexture::update()
|
void PaletteTexture::update()
|
||||||
{
|
{
|
||||||
|
if (!Context::imageTextures)
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_paletteCRC256 == gDP.paletteCRC256)
|
if (m_paletteCRC256 == gDP.paletteCRC256)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@ ZlutTexture::ZlutTexture()
|
||||||
|
|
||||||
void ZlutTexture::init()
|
void ZlutTexture::init()
|
||||||
{
|
{
|
||||||
|
if (!Context::imageTextures)
|
||||||
|
return;
|
||||||
|
|
||||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||||
|
|
||||||
const void * zLUT;
|
const void * zLUT;
|
||||||
|
@ -66,6 +69,9 @@ void ZlutTexture::init()
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZlutTexture::destroy() {
|
void ZlutTexture::destroy() {
|
||||||
|
if (!Context::imageTextures)
|
||||||
|
return;
|
||||||
|
|
||||||
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
const FramebufferTextureFormats & fbTexFormats = gfxContext.getFramebufferTextureFormats();
|
||||||
|
|
||||||
Context::BindImageTextureParameters bindParams;
|
Context::BindImageTextureParameters bindParams;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user