From ebfbe1a78e5e8ca15cb8f9c09db5e7e034f0721d Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sun, 11 Jul 2021 04:38:16 -0700 Subject: [PATCH] libobs-opengl: Fix GS_R10G10B10A2 format --- libobs-opengl/gl-subsystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs-opengl/gl-subsystem.h b/libobs-opengl/gl-subsystem.h index c851243bd..da0d5819b 100644 --- a/libobs-opengl/gl-subsystem.h +++ b/libobs-opengl/gl-subsystem.h @@ -150,7 +150,7 @@ static inline GLenum get_gl_format_type(enum gs_color_format format) case GS_BGRA: return GL_UNSIGNED_BYTE; case GS_R10G10B10A2: - return GL_UNSIGNED_INT_10_10_10_2; + return GL_UNSIGNED_INT_2_10_10_10_REV; case GS_RGBA16: return GL_UNSIGNED_SHORT; case GS_R16: