Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/java/net/vulkanmod/gl/VkGlRenderbuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ void allocateImage(int width, int height, int vkFormat) {
}

void updateSampler() {
// A renderbuffer is a render target, not a sampled resource, so it may
// legitimately have no sampler filter set (minFilter == 0, the unset
// default). Treat that as "no sampler needed" and skip the sampler
// build instead of falling through to the "Unexpected min filter value"
// throw below. See issue #674 (Xaero's custom depth renderbuffer FBO).
if (minFilter == 0)
return;

if (vulkanImage == null)
return;

Expand Down