فهرست منبع

bugfix force refresh of all state after reset()

Nicolas Cannasse 11 سال پیش
والد
کامیت
b41b64afc7
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      h3d/impl/GlDriver.hx
  2. 1 0
      h3d/impl/Stage3dDriver.hx

+ 1 - 0
h3d/impl/GlDriver.hx

@@ -215,6 +215,7 @@ class GlDriver extends Driver {
 			bits = (bits & ~Pass.culling_mask) | (c << Pass.culling_offset);
 		}
 		var diff = bits ^ curMatBits;
+		if( curMatBits < 0 ) diff = -1;
 		if( diff == 0 )
 			return;
 		if( diff & Pass.culling_mask != 0 ) {

+ 1 - 0
h3d/impl/Stage3dDriver.hx

@@ -303,6 +303,7 @@ class Stage3dDriver extends Driver {
 
 	function selectMaterialBits( bits : Int ) {
 		var diff = bits ^ curMatBits;
+		if( curMatBits < 0 ) diff = -1;
 		if( diff == 0 )
 			return;
 		if( diff & Pass.culling_mask != 0 )