소스 검색

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