diff options
Diffstat (limited to 'src/mesa/main/framebuffer.c')
-rw-r--r-- | src/mesa/main/framebuffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index f69dc6cb3e6..38bd6806056 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -858,6 +858,8 @@ _mesa_get_color_read_format(struct gl_context *ctx) return GL_BGRA; else if (format == MESA_FORMAT_B5G6R5_UNORM) return GL_BGR; + else if (format == MESA_FORMAT_R_UNORM8) + return GL_RED; switch (data_type) { case GL_UNSIGNED_INT: |