More efficient updating of TEV state

This commit is contained in:
wheremyfoodat 2023-08-11 19:45:08 +03:00
parent 26bb05bd8e
commit 0212395bcb
4 changed files with 27 additions and 66 deletions

View file

@ -25,13 +25,6 @@ class RendererGL final : public Renderer {
OpenGL::VertexArray vao;
OpenGL::VertexBuffer vbo;
// TEV configuration uniform locations
GLint textureEnvSourceLoc = -1;
GLint textureEnvOperandLoc = -1;
GLint textureEnvCombinerLoc = -1;
GLint textureEnvColorLoc = -1;
GLint textureEnvScaleLoc = -1;
// Uniform of PICA registers
GLint picaRegLoc = -1;
@ -63,7 +56,6 @@ class RendererGL final : public Renderer {
void setupBlending();
void setupStencilTest(bool stencilEnable);
void bindDepthBuffer();
void setupTextureEnvState();
void bindTexturesToSlots();
void updateLightingLUT();