1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-02-18 15:54:21 +01:00

fixed viewport offset

This commit is contained in:
yours3lf 2020-05-10 19:15:30 +01:00
parent 8b200c2b2f
commit 14807a8168

View File

@ -59,8 +59,8 @@ static uint32_t drawCommon(VkCommandBuffer commandBuffer, int32_t vertexOffset)
//Clip Window
clFit(commandBuffer, &commandBuffer->binCl, V3D21_CLIP_WINDOW_length);
clInsertClipWindow(&commandBuffer->binCl,
vp.width - vp.x,
vp.height - vp.y,
vp.width,
vp.height,
vp.y, //bottom pixel coord
vp.x); //left pixel coord