Skip to content

Commit 89493bf

Browse files
committed
fix: metal backend fragment constant issue
1 parent ac04760 commit 89493bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/pl_graphics_metal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@
14301430

14311431
const char* pcFragmentConstantData = ptDescription->pFragmentTempConstantData;
14321432
uConstantOffset = 0;
1433-
for(uint32_t i = 0; i < ptShader->tDesc._uVertexConstantCount; i++)
1433+
for(uint32_t i = 0; i < ptShader->tDesc._uFragmentConstantCount; i++)
14341434
{
14351435
const plSpecializationConstant* ptConstant = &ptShader->tDesc.atFragmentConstants[i];
14361436
const uint32_t uConstantIndex = ptConstant->uID == 0 ? i : ptConstant->uID;

0 commit comments

Comments
 (0)