summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-12 12:58:59 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-12 12:58:59 -0700
commitd7aa44636988941d5d09ba943104033dd1912c80 (patch)
treef7257994f51d942e4fef948ffb538d05a9dd3ab4
parent77baacbab156cd3859fe50e05c2ff55fe8e27926 (diff)
Try PIPE_FORMAT_R5G6B5_UNORM for GL_RGB5 request.
-rw-r--r--src/mesa/state_tracker/st_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 98cc2084f0..287a0054b9 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -413,6 +413,8 @@ st_choose_pipe_format(struct pipe_context *pipe, GLint internalFormat,
case GL_R3_G3_B2:
if (pipe->is_format_supported( pipe, PIPE_FORMAT_A1R5G5B5_UNORM, surfType ))
return PIPE_FORMAT_A1R5G5B5_UNORM;
+ if (pipe->is_format_supported( pipe, PIPE_FORMAT_R5G6B5_UNORM, surfType ))
+ return PIPE_FORMAT_R5G6B5_UNORM;
return default_rgba_format( pipe, surfType );
case GL_ALPHA: