mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Remove Noise textures.
This commit is contained in:
parent
c33b6056cb
commit
9e5cab6852
14
Textures.cpp
14
Textures.cpp
|
@ -231,8 +231,6 @@ void TextureCache_Init()
|
|||
cache.cachedBytes = 0;
|
||||
cache.bitDepth = config.texture.textureBitDepth;
|
||||
|
||||
glGenTextures( 32, cache.glNoiseNames );
|
||||
|
||||
cache.dummy = TextureCache_AddTop();
|
||||
|
||||
cache.dummy->address = 0;
|
||||
|
@ -424,9 +422,6 @@ void TextureCache_Destroy()
|
|||
while (cache.bottom)
|
||||
TextureCache_RemoveBottom();
|
||||
|
||||
glDeleteTextures( 32, cache.glNoiseNames );
|
||||
// glDeleteTextures( 1, &cache.glDummyName );
|
||||
|
||||
cache.top = NULL;
|
||||
cache.bottom = NULL;
|
||||
}
|
||||
|
@ -1082,12 +1077,3 @@ void TextureCache_Update( u32 t )
|
|||
|
||||
cache.cachedBytes += cache.current[t]->textureBytes;
|
||||
}
|
||||
|
||||
void TextureCache_ActivateNoise( u32 t )
|
||||
{
|
||||
glActiveTexture( GL_TEXTURE0 + t );
|
||||
|
||||
glBindTexture( GL_TEXTURE_2D, cache.glNoiseNames[RSP.DList & 0x1F] );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ struct TextureCache
|
|||
u32 cachedBytes;
|
||||
u32 numCached;
|
||||
u32 hits, misses;
|
||||
GLuint glNoiseNames[32];
|
||||
//GLuint glDummyName;
|
||||
CachedTexture *dummy;
|
||||
u32 bitDepth;
|
||||
|
@ -86,7 +85,6 @@ void TextureCache_Init();
|
|||
void TextureCache_Destroy();
|
||||
void TextureCache_Update( u32 t );
|
||||
void TextureCache_ActivateTexture( u32 t, CachedTexture *texture );
|
||||
void TextureCache_ActivateNoise( u32 t );
|
||||
void TextureCache_ActivateDummy( u32 t );
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user