[Bf-blender-cvs] [b98c7bc] master: Fix T44077 material update fails in textured mode when VBOs are off.

Antony Riakiotakis noreply at git.blender.org
Tue Mar 31 11:42:51 CEST 2015


Commit: b98c7bcf3a6473491f116aefa1a82f45d28d3451
Author: Antony Riakiotakis
Date:   Tue Mar 31 11:42:39 2015 +0200
Branches: master
https://developer.blender.org/rBb98c7bcf3a6473491f116aefa1a82f45d28d3451

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

===================================================================

M	source/blender/editors/render/render_update.c

===================================================================

diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c
index 4980e0b..d3d5cb1 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);




More information about the Bf-blender-cvs mailing list