mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-19 08:50:48 +00:00
Clean up various things.
This commit is contained in:
parent
ddfe219293
commit
81c614fa07
13 changed files with 65 additions and 69 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue