diff options
author | Brian Paul <[email protected]> | 2008-07-04 10:35:32 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-04 10:35:32 -0600 |
commit | a3de65659cf07420363c91ae38dd61468f122ef0 (patch) | |
tree | e45e94e8635caa2b520fcfb64b1813b2e45a033d /src/mesa | |
parent | 2fa7b3f78639114aec42fcbbfc29d3645832708b (diff) |
gallium: fix st_choose_format(internalFormat=GL_RGBA16)
Need to check if we're choosing a surface or texture format.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 03ec558a367..50a06868dfc 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -362,7 +362,10 @@ st_choose_format(struct pipe_context *pipe, GLint internalFormat, case GL_RGBA12: return default_rgba_format( screen, surfType ); case GL_RGBA16: - return default_deep_rgba_format( screen, surfType ); + if (surfType == PIPE_SURFACE) + return default_deep_rgba_format( screen, surfType ); + else + return default_rgba_format( screen, surfType ); case GL_RGBA4: case GL_RGBA2: |