mesa: fix hodge podge indentation, update comments in texformat.c

This commit is contained in:
Brian Paul 2013-06-02 18:06:17 -06:00
parent 6b53e2b038
commit 8588350dc0
1 changed files with 172 additions and 174 deletions

View File

@ -50,22 +50,21 @@
* internalFormat parameters passed to glTexImage().
*
* \param ctx the GL context.
* \param target a texture target (GL_TEXTURE_x)
* \param internalFormat user's prefered internal texture format.
* \param format incoming image pixel format.
* \param type incoming image data type.
*
* \return a pointer to a gl_texture_format object which describes the
* choosen texture format, or NULL on failure.
* \return the closest gl_format for the given format/type arguments
*
* This is called via dd_function_table::ChooseTextureFormat. Hardware drivers
* will typically override this function with a specialized version.
* This is called via dd_function_table::ChooseTextureFormat. Hardware
* drivers may override this function with a specialized version.
*/
gl_format
_mesa_choose_tex_format(struct gl_context *ctx, GLenum target,
GLint internalFormat, GLenum format, GLenum type)
{
(void) format;
(void) type;
switch (internalFormat) {
/* shallow RGBA formats */
@ -821,4 +820,3 @@ _mesa_choose_tex_format(struct gl_context *ctx, GLenum target,
_mesa_lookup_enum_by_nr(internalFormat));
return MESA_FORMAT_NONE;
}