mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
D3D11 fix
This commit is contained in:
parent
3d376b0ab7
commit
c4d8ebcad5
1 changed files with 2 additions and 1 deletions
|
@ -302,7 +302,8 @@ bool GenerateFragmentShader(const FShaderID &id, char *buffer, const ShaderLangu
|
|||
}
|
||||
|
||||
WRITE(p, "struct PS_IN {\n");
|
||||
if (doTexture) {
|
||||
if (doTexture || compat.shaderLanguage == HLSL_D3D11) {
|
||||
// In D3D11, if we always have a texcoord in the VS, we always need it in the PS too for the structs to match.
|
||||
WRITE(p, " vec3 v_texcoord: TEXCOORD0;\n");
|
||||
}
|
||||
const char *colorInterpolation = doFlatShading && compat.shaderLanguage == HLSL_D3D11 ? "nointerpolation " : "";
|
||||
|
|
Loading…
Add table
Reference in a new issue