From 6ecdf71dbc121d26415f5b422b315bb19c1e5bb1 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Mon, 6 Mar 2023 01:24:05 +0200 Subject: [PATCH] [PICA] Add VSH_ATTR_NUM to reg definition --- include/PICA/regs.hpp | 1 + include/renderer_gl/surfaces.hpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/PICA/regs.hpp b/include/PICA/regs.hpp index c30b0eb3..d4faf2bb 100644 --- a/include/PICA/regs.hpp +++ b/include/PICA/regs.hpp @@ -75,6 +75,7 @@ namespace PICAInternalRegs { PrimitiveConfig = 0x25E, // Vertex shader registers + VertexShaderAttrNum = 0x242, VertexBoolUniform = 0x2B0, VertexIntUniform0 = 0x2B1, VertexIntUniform1 = 0x2B2, diff --git a/include/renderer_gl/surfaces.hpp b/include/renderer_gl/surfaces.hpp index 2f083f8c..cfb86f84 100644 --- a/include/renderer_gl/surfaces.hpp +++ b/include/renderer_gl/surfaces.hpp @@ -56,7 +56,6 @@ struct ColourBuffer { if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) Helpers::panic("Incomplete framebuffer"); - //glBindRenderbuffer(GL_RENDERBUFFER, 0); // TODO: This should not clear the framebuffer contents. It should load them from VRAM. GLint oldViewport[4];