A couple whoopsies

This commit is contained in:
offtkp 2024-07-31 03:43:47 +03:00
parent ab4c9b2ae5
commit 5e0fceef63
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ namespace {
glUniform1i(OpenGL::uniformLocation(program, "u_tex0"), 0); glUniform1i(OpenGL::uniformLocation(program, "u_tex0"), 0);
glUniform1i(OpenGL::uniformLocation(program, "u_tex1"), 1); glUniform1i(OpenGL::uniformLocation(program, "u_tex1"), 1);
glUniform1i(OpenGL::uniformLocation(program, "u_tex2"), 2); glUniform1i(OpenGL::uniformLocation(program, "u_tex2"), 2);
glUniform1i(OpenGL::uniformLocation(program, "u_tex_lighting_lut"), 3); glUniform1i(OpenGL::uniformLocation(program, "u_tex_luts"), 3);
// Allocate memory for the program UBO // Allocate memory for the program UBO
glGenBuffers(1, &programEntry.uboBinding); glGenBuffers(1, &programEntry.uboBinding);
@ -477,6 +477,7 @@ void RendererGL::drawVertices(PICA::PrimType primType, std::span<const Vertex> v
programEntry.ready = true; programEntry.ready = true;
programEntry.program.createFromBinary(compiledProgram->binary, compiledProgram->binaryFormat); programEntry.program.createFromBinary(compiledProgram->binary, compiledProgram->binaryFormat);
programEntry.program.use();
initializeProgramEntry(gl, programEntry); initializeProgramEntry(gl, programEntry);
delete compiledProgram; delete compiledProgram;

View file

@ -150,7 +150,7 @@ static void configInit() {
static const retro_variable values[] = { static const retro_variable values[] = {
{"panda3ds_use_shader_jit", "Enable shader JIT; enabled|disabled"}, {"panda3ds_use_shader_jit", "Enable shader JIT; enabled|disabled"},
{"panda3ds_accurate_shader_mul", "Enable accurate shader multiplication; disabled|enabled"}, {"panda3ds_accurate_shader_mul", "Enable accurate shader multiplication; disabled|enabled"},
{"panda3ds_use_ubershader", EmulatorConfig::ubershaderDefault ? "Use ubershaders (No stutter, maybe slower); enabled|disabled" {"panda3ds_use_ubershader", defaultShaderMode == ShaderMode::Ubershader ? "Use ubershaders (No stutter, maybe slower); enabled|disabled"
: "Use ubershaders (No stutter, maybe slower); disabled|enabled"}, : "Use ubershaders (No stutter, maybe slower); disabled|enabled"},
{"panda3ds_use_vsync", "Enable VSync; enabled|disabled"}, {"panda3ds_use_vsync", "Enable VSync; enabled|disabled"},
{"panda3ds_dsp_emulation", "DSP emulation; Null|HLE|LLE"}, {"panda3ds_dsp_emulation", "DSP emulation; Null|HLE|LLE"},