mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
GPU: Use software transform for flat shading.
Except on GLES where it works fine with the default provoking index. This fixes #10969 so that it works everywhere.
This commit is contained in:
1 parent
dca159c47e
commit
2606365ba4
3 files changed
+6
-3
No files matched your search
@@ -574,7 +574,8 @@ void DrawEngineVulkan::DoFlush() {
|
||||
|
||||
GEPrimitiveType prim = prevPrim_;
|
||||
|
||||
bool useHWTransform = CanUseHardwareTransform(prim);
|
||||
// Always use software for flat shading to fix the provoking index.
|
||||
bool useHWTransform = CanUseHardwareTransform(prim) && gstate.getShadeMode() != GE_SHADE_FLAT;
|
||||
|
||||
VulkanVertexShader *vshader = nullptr;
|
||||
VulkanFragmentShader *fshader = nullptr;
|
||||
|
||||
Reference in new issue
Block a user