diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-12-22 20:58:15 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-12-26 07:46:09 +0000 |
commit | 6c28efb58b5b9a80e445258102e4c1641d65b618 (patch) | |
tree | 3cbdf013b1d286444e13b99e629d0663f1504da6 /src/plugins | |
parent | 3118f0b6b0d16fdb5a34a210aff47b916068fa2e (diff) |
QGLShaderProgram: hoist some constant expressions out of a loop
d->programGuard and its ID don't change when calling a
GL function, so check them only once, before entering
the loop, instead of once per iteration.
Cache d->programGuard->id().
Change-Id: I398da7a76823b2eb854b7b9d5af512adf9969fc9
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions