mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 04:31:29 +02:00
Fixing the program map sorting, good to go
This commit is contained in:
parent
89f4fe1c04
commit
edb416d24e
2 changed files with 2 additions and 3 deletions
|
@ -122,7 +122,6 @@ Shader::Pointer Shader::createProgram(const Pointer& vertexShader, const Pointer
|
||||||
|
|
||||||
Shader::Pointer Shader::createProgram(const Pointer& vertexShader, const Pointer& geometryShader, const Pointer& pixelShader) {
|
Shader::Pointer Shader::createProgram(const Pointer& vertexShader, const Pointer& geometryShader, const Pointer& pixelShader) {
|
||||||
return createOrReuseProgramShader(PROGRAM, vertexShader, geometryShader, pixelShader);
|
return createOrReuseProgramShader(PROGRAM, vertexShader, geometryShader, pixelShader);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shader::defineSlots(const SlotSet& uniforms, const SlotSet& uniformBuffers, const SlotSet& resourceBuffers, const SlotSet& textures, const SlotSet& samplers, const SlotSet& inputs, const SlotSet& outputs) {
|
void Shader::defineSlots(const SlotSet& uniforms, const SlotSet& uniformBuffers, const SlotSet& resourceBuffers, const SlotSet& textures, const SlotSet& samplers, const SlotSet& inputs, const SlotSet& outputs) {
|
||||||
|
|
|
@ -259,10 +259,10 @@ protected:
|
||||||
bool operator() (const ProgramMapKey& l, const ProgramMapKey& r) const {
|
bool operator() (const ProgramMapKey& l, const ProgramMapKey& r) const {
|
||||||
if (l.x == r.x) {
|
if (l.x == r.x) {
|
||||||
if (l.y == r.y) {
|
if (l.y == r.y) {
|
||||||
return (l.z < l.z);
|
return (l.z < r.z);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return (l.y < l.y);
|
return (l.y < r.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue