forked from Dynamitos/Seele
Memory leak, but otherwise working
This commit is contained in:
1 parent
35966cb5b7
commit
3dc5855d6c
27 files changed
+558
-674
No files matched your search
@@ -145,8 +145,8 @@ void DepthPrepass::publishOutputs()
|
||||
// still match the size of the whole image or their coordinate systems go out of sync
|
||||
TextureCreateInfo depthBufferInfo = {
|
||||
.format = Gfx::SE_FORMAT_D32_SFLOAT,
|
||||
.width = viewport->getOwner()->getWidth(),
|
||||
.height = viewport->getOwner()->getHeight(),
|
||||
.width = viewport->getOwner()->getFramebufferWidth(),
|
||||
.height = viewport->getOwner()->getFramebufferHeight(),
|
||||
.usage = Gfx::SE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,
|
||||
};
|
||||
depthBuffer = graphics->createTexture2D(depthBufferInfo);
|
||||
|
||||
Reference in new issue
Block a user