added clear colour support

liteCraft
hYdos 2020-03-06 06:50:22 +10:00
parent 3c07221b7c
commit 4dc752d7ef
1 changed files with 1 additions and 1 deletions

View File

@ -1512,7 +1512,7 @@ public class VulkanExample {
renderPassInfo.renderArea(renderArea);
VkClearValue.Buffer clearValues = VkClearValue.callocStack(2, stack);
clearValues.get(0).color().float32(stack.floats(0.0f, 0.0f, 0.0f, 1.0f));
clearValues.get(0).color().float32(stack.floats(Window.getColour().x / 255, Window.getColour().y / 255, Window.getColour().z / 255, 1.0f)); //The screens clear colour
clearValues.get(1).depthStencil().set(1.0f, 0);
renderPassInfo.pClearValues(clearValues);