mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-15 02:09:36 -06:00
Build Fix
This commit is contained in:
@ -323,7 +323,7 @@ const char *GenerateVertexShaderCode(u32 components, API_TYPE ApiType)
|
|||||||
WRITE(p, "int posmtx = int(fposmtx);\n");
|
WRITE(p, "int posmtx = int(fposmtx);\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DriverDetails::HasBug(BUG_NODYNUBOACCESS))
|
if (DriverDetails::HasBug(DriverDetails::BUG_NODYNUBOACCESS))
|
||||||
{
|
{
|
||||||
// This'll cause issues, but it can't be helped
|
// This'll cause issues, but it can't be helped
|
||||||
WRITE(p, "float4 pos = float4(dot(" I_TRANSFORMMATRICES"[0], rawpos), dot(" I_TRANSFORMMATRICES"[1], rawpos), dot(" I_TRANSFORMMATRICES"[2], rawpos), 1);\n");
|
WRITE(p, "float4 pos = float4(dot(" I_TRANSFORMMATRICES"[0], rawpos), dot(" I_TRANSFORMMATRICES"[1], rawpos), dot(" I_TRANSFORMMATRICES"[2], rawpos), 1);\n");
|
||||||
|
@ -540,8 +540,8 @@ void ProgramShaderCache::CreateHeader ( void )
|
|||||||
, g_ActiveConfig.backend_info.bSupportsGLSLUBO && v<GLSL_140 ? "#extension GL_ARB_uniform_buffer_object : enable" : ""
|
, g_ActiveConfig.backend_info.bSupportsGLSLUBO && v<GLSL_140 ? "#extension GL_ARB_uniform_buffer_object : enable" : ""
|
||||||
, v==GLSL_120 ? "attribute" : "in"
|
, v==GLSL_120 ? "attribute" : "in"
|
||||||
, v==GLSL_120 ? "attribute" : "out"
|
, v==GLSL_120 ? "attribute" : "out"
|
||||||
, DriverDetails::HasBug(BUG_BROKENCENTROID) ? "in" : v==GLSL_120 ? "varying" : "centroid in"
|
, DriverDetails::HasBug(DriverDetails::BUG_BROKENCENTROID) ? "in" : v==GLSL_120 ? "varying" : "centroid in"
|
||||||
, DriverDetails::HasBug(BUG_BROKENCENTROID) ? "out" : v==GLSL_120 ? "varying" : "centroid out"
|
, DriverDetails::HasBug(DriverDetails::BUG_BROKENCENTROID) ? "out" : v==GLSL_120 ? "varying" : "centroid out"
|
||||||
, v==GLSL_120 ? "#define texture texture2D" : ""
|
, v==GLSL_120 ? "#define texture texture2D" : ""
|
||||||
, v==GLSL_120 ? "#define round(x) floor((x)+0.5f)" : ""
|
, v==GLSL_120 ? "#define round(x) floor((x)+0.5f)" : ""
|
||||||
, v==GLSL_120 ? "#define out " : ""
|
, v==GLSL_120 ? "#define out " : ""
|
||||||
|
Reference in New Issue
Block a user