Add more types

This commit is contained in:
mcrcortex
2025-07-12 14:14:53 +10:00
parent 1c8d052544
commit 4a140c110f

View File

@@ -103,6 +103,8 @@ public class GlTexture extends TrackedObject {
long elemSize = switch (this.format) {
case GL_RGBA8, GL_DEPTH24_STENCIL8 -> 4;
case GL_DEPTH_COMPONENT24 -> 4;//TODO: check this is right????
case GL_DEPTH_COMPONENT32F -> 4;
case GL_DEPTH_COMPONENT32 -> 4;
default -> throw new IllegalStateException("Unknown element size");
};