Fixing bug with changing a shader on a renderer 89/174289/1
authorDavid Steele <david.steele@samsung.com>
Thu, 29 Mar 2018 17:19:37 +0000 (18:19 +0100)
committerDavid Steele <david.steele@samsung.com>
Thu, 29 Mar 2018 17:19:37 +0000 (18:19 +0100)
commit34854751ffccc63a1abf896fb7bf2873f725fc3c
tree45e0537a6051ea5e25263909dd75e32e0714b71d
parentc364b26e8ad52f749ba4ed1b010d4fb45dd05ee5
Fixing bug with changing a shader on a renderer

If the renderer's shader is updated, as is the case in the refraction demo,
then the texture doesn't get shown. This is because the attributes location
cache isn't updated on the renderer when the shader changes (The attributes
location cache should really be in the Program, not in the Renderer).

Modified  scene-graph-renderer to ensure that the geometry is resent to the
RenderRenderer - this sets a flag to re-load the attributes and cache them.

Change-Id: I8edfab92f89213ddb19ca3bd469e2be756c647ad
Signed-off-by: David Steele <david.steele@samsung.com>
dali/internal/update/rendering/scene-graph-renderer.cpp