Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-31 12:42:39 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-31 12:42:39 +0300
commitb98c7bcf3a6473491f116aefa1a82f45d28d3451 (patch)
treeeee7d220c81c3ccf5e613014bdcab2f8322a6fe0 /source/blender/editors/render
parent4153ff3610241cc4e4a73326eca49ee2797ee125 (diff)
Fix T44077 material update fails in textured mode when VBOs are off.
The issue has been here since we changed drawing code for meshes to use vertex arrays instead of immediate mode when VBO was off. Basically we should now always invalidate the GPU objects regardless of the VBO setting in the preferences. The bug has been there since 2.73 at least, but what made it apparent now is that new version resets preferences and as an extension the VBO flag. Should be included in final 2.74 release
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index 4980e0bba80..d3d5cb12ac8 100644
--- a/source/blender/editors/render/render_update.c
+++ b/source/blender/editors/render/render_update.c
@@ -300,7 +300,7 @@ static void material_changed(Main *bmain, Material *ma)
}
/* find textured objects */
- if (texture_draw && !(U.gameflags & USER_DISABLE_VBO)) {
+ if (texture_draw) {
for (ob = bmain->object.first; ob; ob = ob->id.next) {
DerivedMesh *dm = ob->derivedFinal;
Material ***material = give_matarar(ob);
@@ -423,7 +423,7 @@ static void texture_changed(Main *bmain, Tex *tex)
}
/* find textured objects */
- if (texture_draw && !(U.gameflags & USER_DISABLE_VBO)) {
+ if (texture_draw) {
for (ob = bmain->object.first; ob; ob = ob->id.next) {
DerivedMesh *dm = ob->derivedFinal;
Material ***material = give_matarar(ob);