Commit 04cfe18d by Alexey Knyazev Committed by Commit Bot

Metal: Fix typo in TextureMtl::bindToShader

Bug: angleproject:2634 Change-Id: I56d13dda7a6c0ad002db15cb780d7bf6b430bf65 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2519712Reviewed-by: 's avatarAlexey Knyazev <lexa.knyazev@gmail.com> Reviewed-by: 's avatarLe Hoang Quyen <le.hoang.q@gmail.com> Commit-Queue: Alexey Knyazev <lexa.knyazev@gmail.com>
parent 3dfaeeb0
......@@ -1320,17 +1320,17 @@ angle::Result TextureMtl::bindToShader(const gl::Context *context,
mFormat.swizzled) &&
contextMtl->getDisplay()->getFeatures().hasTextureSwizzle.enabled)
{
const gl::InternalFormat &glInternalForamt = *mState.getBaseLevelDesc().format.info;
const gl::InternalFormat &glInternalFormat = *mState.getBaseLevelDesc().format.info;
MTLTextureSwizzleChannels swizzle = MTLTextureSwizzleChannelsMake(
mtl::GetTextureSwizzle(OverrideSwizzleValue(
context, mState.getSwizzleState().swizzleRed, mFormat, glInternalForamt)),
context, mState.getSwizzleState().swizzleRed, mFormat, glInternalFormat)),
mtl::GetTextureSwizzle(OverrideSwizzleValue(
context, mState.getSwizzleState().swizzleGreen, mFormat, glInternalForamt)),
context, mState.getSwizzleState().swizzleGreen, mFormat, glInternalFormat)),
mtl::GetTextureSwizzle(OverrideSwizzleValue(
context, mState.getSwizzleState().swizzleBlue, mFormat, glInternalForamt)),
context, mState.getSwizzleState().swizzleBlue, mFormat, glInternalFormat)),
mtl::GetTextureSwizzle(OverrideSwizzleValue(
context, mState.getSwizzleState().swizzleAlpha, mFormat, glInternalForamt)));
context, mState.getSwizzleState().swizzleAlpha, mFormat, glInternalFormat)));
mNativeSwizzleSamplingView = mNativeTexture->createSwizzleView(swizzle);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment