瀏覽代碼

Fixed lightblend mode.

Brucey 3 年之前
父節點
當前提交
00fad7617c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sdlsurface.mod/common.bmx

+ 1 - 1
sdlsurface.mod/common.bmx

@@ -186,5 +186,5 @@ end rem
 Const SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA:Int = $A
 
 Const BLENDMODE_LIGHTBLEND:Int = SDL_BLENDOPERATION_ADD Shl 0 | SDL_BLENDFACTOR_SRC_COLOR Shl 4 | SDL_BLENDFACTOR_ONE Shl 8 | ..
-	SDL_BLENDOPERATION_ADD Shl 16 | SDL_BLENDFACTOR_SRC_ALPHA Shl 20 | SDL_BLENDFACTOR_SRC_ALPHA Shl 24
+	SDL_BLENDOPERATION_ADD Shl 16 | SDL_BLENDFACTOR_SRC_COLOR Shl 20 | SDL_BLENDFACTOR_DST_COLOR Shl 24