Clean up various things.

This commit is contained in:
NeoBrainX
2011-09-29 23:32:05 +02:00
parent ddfe219293
commit 81c614fa07
13 changed files with 65 additions and 69 deletions

View File

@ -32,9 +32,7 @@ struct VERTEXSHADER
VERTEXSHADER() : glprogid(0) {}
GLuint glprogid; // opengl program id
//#if defined(_DEBUG) || defined(DEBUGFAST)
std::string strprog;
//#endif
};
class VertexShaderCache
@ -43,8 +41,7 @@ class VertexShaderCache
{
VERTEXSHADER shader;
VERTEXSHADERUIDSAFE safe_uid;
int frameCount;
VSCacheEntry() : frameCount(0) {}
VSCacheEntry() {}
void Destroy() {
// printf("Destroying vs %i\n", shader.glprogid);
glDeleteProgramsARB(1, &shader.glprogid);
@ -56,6 +53,9 @@ class VertexShaderCache
static VSCache vshaders;
static VSCacheEntry* last_entry;
static VERTEXSHADERUID last_uid;
static GLuint CurrentShader;
static bool ShaderEnabled;