diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-04-11 13:27:21 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-04-13 18:27:14 +0200 |
commit | ec12bab1acce951976a152e2fd9f2110a327285e (patch) | |
tree | 20edb5dc546af978a377d38377c808142229154c /src/mbgl/gl/program.hpp | |
parent | 8543ae6e11c21b477c42bc10e73aedba190df592 (diff) | |
download | qtlocation-mapboxgl-upstream/attribute-binding-crash.tar.gz |
[core] warn about using too many data driven properties instead of crashingupstream/attribute-binding-crash
Instead, we're printing a warning message and won't bind the attributes beyond the limit. This will cause rendering errors, but it's still better than crashing.
Diffstat (limited to 'src/mbgl/gl/program.hpp')
-rw-r--r-- | src/mbgl/gl/program.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index af02ad3d54..f33501cd11 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -35,7 +35,7 @@ public: context.createProgram(context.createShader(ShaderType::Vertex, vertexSource), context.createShader(ShaderType::Fragment, fragmentSource))), uniformsState((context.linkProgram(program), Uniforms::bindLocations(program))), - attributeLocations(Attributes::bindLocations(program)) { + attributeLocations(Attributes::bindLocations(context, program)) { // Re-link program after manually binding only active attributes in Attributes::bindLocations context.linkProgram(program); |