Track uniform values in GLShader

Review Request #112776 - Created Sept. 17, 2013 and updated

Information
Fredrik Höglund
kde-workspace
KDE/4.11
Reviewers
kwin
commit b79cdcb698d86907aee64fb127c0548355dc262c
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Tue Sep 17 19:00:25 2013 +0200

    kwin: Track uniform values in GLShader
    
    Store values for float, int, and vec4 uniforms in the GLShader
    object, and only call glUniform() when the value has actually changed.
    
    vec2 and mat4 uniforms are not tracked, since they are rarely set
    to the values they already had.

  
Loading...