gallium: fix st_choose_format(internalFormat=GL_RGBA16)

Need to check if we're choosing a surface or texture format.
This commit is contained in:
Brian Paul
2008-07-04 10:35:32 -06:00
parent 2fa7b3f786
commit a3de65659c
+4 -1
View File
@@ -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: