mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Make cast from int to float explicit in shader
This should fix this panic message I saw when playing Super Mario Strikers: Failed to compile pixel shader [...]: error C7011: implicit cast from "int" to "float"
This commit is contained in:
@ -564,7 +564,7 @@ static inline T GeneratePixelShader(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
|
||||
|
||||
// Opengl has reversed vertical screenspace coordiantes
|
||||
if (ApiType == API_OPENGL)
|
||||
out.Write("\tscreenpos.y = %i - screenpos.y;\n", EFB_HEIGHT);
|
||||
out.Write("\tscreenpos.y = %i.0 - screenpos.y;\n", EFB_HEIGHT);
|
||||
|
||||
out.Write("\tint zCoord = int(" I_ZSLOPE".z + " I_ZSLOPE".x * screenpos.x + " I_ZSLOPE".y * screenpos.y);\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user