diff --git a/src/main/java/net/vulkanmod/gl/VkGlRenderbuffer.java b/src/main/java/net/vulkanmod/gl/VkGlRenderbuffer.java index 63b7a62ed..9d69b7d9c 100644 --- a/src/main/java/net/vulkanmod/gl/VkGlRenderbuffer.java +++ b/src/main/java/net/vulkanmod/gl/VkGlRenderbuffer.java @@ -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;