mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
[spline/bezier]Avoid to set shader id bits if option of hardware tessellation is off.
This commit is contained in:
1 parent
de253a6aef
commit
b436aef32a
1 file changed
+7
-5
@@ -132,11 +132,13 @@ void ComputeVertexShaderID(ShaderID *id_out, u32 vertType, bool useHWTransform)
|
||||
id.SetBit(VS_BIT_NORM_REVERSE, gstate.areNormalsReversed());
|
||||
id.SetBit(VS_BIT_HAS_TEXCOORD, hasTexcoord);
|
||||
|
||||
id.SetBit(VS_BIT_BEZIER, doBezier);
|
||||
id.SetBit(VS_BIT_SPLINE, doSpline);
|
||||
id.SetBit(VS_BIT_HAS_COLOR_TESS, hasColorTess);
|
||||
id.SetBit(VS_BIT_HAS_TEXCOORD_TESS, hasTexcoordTess);
|
||||
id.SetBit(VS_BIT_NORM_REVERSE_TESS, gstate.isPatchNormalsReversed());
|
||||
if (g_Config.bHardwareTessellation) {
|
||||
id.SetBit(VS_BIT_BEZIER, doBezier);
|
||||
id.SetBit(VS_BIT_SPLINE, doSpline);
|
||||
id.SetBit(VS_BIT_HAS_COLOR_TESS, hasColorTess);
|
||||
id.SetBit(VS_BIT_HAS_TEXCOORD_TESS, hasTexcoordTess);
|
||||
id.SetBit(VS_BIT_NORM_REVERSE_TESS, gstate.isPatchNormalsReversed());
|
||||
}
|
||||
}
|
||||
|
||||
id.SetBit(VS_BIT_FLATSHADE, doFlatShading);
|
||||
|
||||
Reference in new issue
Block a user