mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Hotfix UBO binding
This commit is contained in:
parent
aad7bb817e
commit
cb0e69847c
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ std::string FragmentGenerator::generate(const PICARegs& regs) {
|
||||||
|
|
||||||
ret += "fragColor = combinerOutput;\n";
|
ret += "fragColor = combinerOutput;\n";
|
||||||
ret += "}"; // End of main function
|
ret += "}"; // End of main function
|
||||||
ret += "\n\n\n\n\n\n\n";
|
ret += "\n\n\n";
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -828,8 +828,8 @@ OpenGL::Program& RendererGL::getSpecializedShader() {
|
||||||
// As it's an OpenGL 4.2 feature that MacOS doesn't support...
|
// As it's an OpenGL 4.2 feature that MacOS doesn't support...
|
||||||
uint uboIndex = glGetUniformBlockIndex(program.handle(), "FragmentUniforms");
|
uint uboIndex = glGetUniformBlockIndex(program.handle(), "FragmentUniforms");
|
||||||
glUniformBlockBinding(program.handle(), uboIndex, uboBlockBinding);
|
glUniformBlockBinding(program.handle(), uboIndex, uboBlockBinding);
|
||||||
glBindBufferBase(GL_UNIFORM_BUFFER, uboBlockBinding, programEntry.uboBinding);
|
|
||||||
}
|
}
|
||||||
|
glBindBufferBase(GL_UNIFORM_BUFFER, uboBlockBinding, programEntry.uboBinding);
|
||||||
|
|
||||||
// Upload uniform data to our shader's UBO
|
// Upload uniform data to our shader's UBO
|
||||||
PICA::FragmentUniforms uniforms;
|
PICA::FragmentUniforms uniforms;
|
||||||
|
|
Loading…
Add table
Reference in a new issue