]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.cpp
Sort shader program input attributes by name
[libs/gl.git] / source / backends / opengl / program_backend.cpp
index e83a94844dc4e79e28986e0d8dcf8e835e9cad7e..ce865cf3a0b53417dc0463902d5f9bd20a623b04 100644 (file)
@@ -444,6 +444,8 @@ void OpenGLProgram::query_attributes()
                        info.type = from_gl_type(type);
                }
        }
+
+       sort_member(reflect_data.attributes, &ReflectData::AttributeInfo::name);
 }
 
 void OpenGLProgram::finalize_uniforms()