Fix glitches in PSP rendering. psp
authorachurch
Mon, 10 Jan 2011 09:50:53 +0900
branchpsp
changeset 642 8b202aba3a13
parent 641 b9c86e22b347
child 643 a739a295ee78
Fix glitches in PSP rendering. This patch corrects a few glitches in PSP rendering for certain cases, such as black boxes around the steam vents in the lower Veil area.
PSP/src/fakegl.c
--- a/PSP/src/fakegl.c	Fri Jan 07 02:37:09 2011 +0900
+++ b/PSP/src/fakegl.c	Mon Jan 10 09:50:53 2011 +0900
@@ -3148,6 +3148,7 @@
     texture_changed = 1;
     texture_filter_changed = 1;
     texture_wrap_mode_changed = 1;
+    blend_sfactor = blend_dfactor = -1;
 }
 
 /*************************************************************************/
@@ -3173,6 +3174,12 @@
 
     update_render_state();
     ge_call_sublist(dlist_array[list].list);
+
+    modelview_matrix_changed = 1;
+    texture_changed = 1;
+    texture_filter_changed = 1;
+    texture_wrap_mode_changed = 1;
+    blend_sfactor = blend_dfactor = -1;
 }
 
 /*************************************************************************/