Commit 69b47390 by Jamie Madill Committed by Commit Bot

Vulkan: Fix last parameter of viewport driver uniform.

This was introduced in a prior patch. Bug: angleproject:2717 Change-Id: I8f34377cbb9cbede4237efb1610400a8ed20ae2a Reviewed-on: https://chromium-review.googlesource.com/1131566Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent b70ad524
...@@ -891,10 +891,8 @@ vk::Error ContextVk::updateDriverUniforms() ...@@ -891,10 +891,8 @@ vk::Error ContextVk::updateDriverUniforms()
// Copy and flush to the device. // Copy and flush to the device.
DriverUniforms *driverUniforms = reinterpret_cast<DriverUniforms *>(ptr); DriverUniforms *driverUniforms = reinterpret_cast<DriverUniforms *>(ptr);
driverUniforms->viewport[0] = static_cast<float>(glViewport.x); *driverUniforms = {static_cast<float>(glViewport.x), static_cast<float>(glViewport.y),
driverUniforms->viewport[1] = static_cast<float>(glViewport.y); static_cast<float>(glViewport.width), static_cast<float>(glViewport.height)};
driverUniforms->viewport[2] = static_cast<float>(glViewport.width);
driverUniforms->viewport[2] = static_cast<float>(glViewport.height);
ANGLE_TRY(mDriverUniformsBuffer.flush(getDevice())); ANGLE_TRY(mDriverUniformsBuffer.flush(getDevice()));
......
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