mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Assorted cleanup and tweaks
This commit is contained in:
1 parent
d6e0dd1478
commit
e0634f3df9
9 files changed
+15
-52
No files matched your search
@@ -292,6 +292,7 @@ void DrawEngineVulkan::Flush() {
|
||||
int maxIndex;
|
||||
bool useElements;
|
||||
DecodeIndsAndGetData(&prim, &vertexCount, &maxIndex, &useElements, false);
|
||||
gpuStats.perFrame.numVertsDrawn += vertexCount;
|
||||
|
||||
bool hasColor = (lastVType_ & GE_VTYPE_COL_MASK) != GE_VTYPE_COL_NONE;
|
||||
if (gstate.isModeThrough()) {
|
||||
@@ -420,7 +421,7 @@ void DrawEngineVulkan::Flush() {
|
||||
gstate_c.vertexFullAlpha = gstate_c.vertexFullAlpha && ((hasColor && (gstate.materialupdate & 1)) || gstate.getMaterialAmbientA() == 255) && (!gstate.isLightingEnabled() || gstate.getAmbientA() == 255);
|
||||
}
|
||||
|
||||
gpuStats.perFrame.numUncachedVertsDrawn += vertexCount;
|
||||
gpuStats.perFrame.numVertsDrawn += vertexCount;
|
||||
prim = IndexGenerator::GeneralPrim((GEPrimitiveType)drawInds_[0].prim);
|
||||
|
||||
// At this point, the output is always an indexed triangle/line/point list, no strips/fans.
|
||||
|
||||
Reference in new issue
Block a user