[OpenGL renderer] Fewer uniform uploads

This commit is contained in:
wheremyfoodat 2023-07-05 01:02:32 +03:00
parent 3e18281a99
commit c282a44c27
2 changed files with 18 additions and 43 deletions

View file

@ -23,8 +23,6 @@ class Renderer {
OpenGL::VertexArray vao;
OpenGL::VertexBuffer vbo;
GLint alphaControlLoc = -1;
GLint texUnitConfigLoc = -1;
// TEV configuration uniform locations
GLint textureEnvSourceLoc = -1;
@ -41,9 +39,6 @@ class Renderer {
GLint depthScaleLoc = -1;
GLint depthmapEnableLoc = -1;
u32 oldAlphaControl = 0;
u32 oldTexUnitConfig = 0;
float oldDepthScale = -1.0;
float oldDepthOffset = 0.0;
bool oldDepthmapEnable = false;