mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-22 06:42:59 +12:00
A couple whoopsies
This commit is contained in:
parent
ab4c9b2ae5
commit
5e0fceef63
2 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,7 @@ namespace {
|
|||
glUniform1i(OpenGL::uniformLocation(program, "u_tex0"), 0);
|
||||
glUniform1i(OpenGL::uniformLocation(program, "u_tex1"), 1);
|
||||
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
|
||||
glGenBuffers(1, &programEntry.uboBinding);
|
||||
|
@ -477,6 +477,7 @@ void RendererGL::drawVertices(PICA::PrimType primType, std::span<const Vertex> v
|
|||
programEntry.ready = true;
|
||||
|
||||
programEntry.program.createFromBinary(compiledProgram->binary, compiledProgram->binaryFormat);
|
||||
programEntry.program.use();
|
||||
initializeProgramEntry(gl, programEntry);
|
||||
|
||||
delete compiledProgram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue