added missing break statements

This commit is contained in:
Maximilian Maldacker 2018-02-13 22:54:03 +01:00
parent 21a74b6cda
commit 529b3d1e8e

View File

@ -203,13 +203,16 @@ string MVKCommandResourceFactory::getFragFunctionSuffix(MTLPixelFormat mtlPixFmt
string suffix; string suffix;
switch (mvkFormatTypeFromMTLPixelFormat(mtlPixFmt)) { switch (mvkFormatTypeFromMTLPixelFormat(mtlPixFmt)) {
case kMVKFormatDepthStencil: case kMVKFormatDepthStencil:
suffix += "DS"; suffix = "DS";
break;
case kMVKFormatColorUInt: case kMVKFormatColorUInt:
suffix += "U"; suffix = "U";
break;
case kMVKFormatColorInt: case kMVKFormatColorInt:
suffix += "I"; suffix = "I";
break;
default: default:
suffix += "F"; suffix = "F";
break; break;
} }