summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 2e3dad0cbc..547c290874 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -221,6 +221,11 @@ GLenum gl_integer_format_to_base(GLenum format)
return 0;
}
+bool gl_is_integer_format(GLenum format)
+{
+ return !!gl_integer_format_to_base(format);
+}
+
// Return the number of bytes per component this format implies.
// Returns 0 for formats with non-byte alignments and formats which
// merge multiple components (like GL_UNSIGNED_SHORT_5_6_5).