[Bf-blender-cvs] [4f57f15] blender-v2.74-release: Fix T44077 material update fails in textured mode when VBOs are off.

Antony Riakiotakis noreply at git.blender.org
Tue Mar 31 15:19:04 CEST 2015


Commit: 4f57f156482e937fe922e9e0ec5d1a446b0463da
Author: Antony Riakiotakis
Date:   Tue Mar 31 11:42:39 2015 +0200
Branches: blender-v2.74-release
https://developer.blender.org/rB4f57f156482e937fe922e9e0ec5d1a446b0463da

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