[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50001] branches/soc-2012-swiss_cheese/ source/blender/gpu/intern/gpu_draw.c: Added missing gpuImmediateFormat_V3/ gpuImmediateUnformat that was causing blenderplayer to crash.
Jason Wilkins
Jason.A.Wilkins at gmail.com
Sun Aug 19 05:46:54 CEST 2012
Revision: 50001
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50001
Author: jwilkins
Date: 2012-08-19 03:46:51 +0000 (Sun, 19 Aug 2012)
Log Message:
-----------
Added missing gpuImmediateFormat_V3/gpuImmediateUnformat that was causing blenderplayer to crash.
Modified Paths:
--------------
branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_draw.c
Modified: branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_draw.c
===================================================================
--- branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_draw.c 2012-08-19 03:05:38 UTC (rev 50000)
+++ branches/soc-2012-swiss_cheese/source/blender/gpu/intern/gpu_draw.c 2012-08-19 03:46:51 UTC (rev 50001)
@@ -126,7 +126,8 @@
advance_tab= advance * 4; /* tab width could also be an option */
-
+ gpuImmediateFormat_V2();
+
for (index = 0; index < textlen; index++) {
float uv[4][2];
@@ -188,6 +189,9 @@
gpuTranslate(advance, 0.0, 0.0);
line_start -= advance; /* so we can go back to the start of the line */
}
+
+ gpuImmediateUnformat();
+
gpuPopMatrix();
}
}
More information about the Bf-blender-cvs
mailing list