예제 #1
0
파일: swrast.c 프로젝트: nikai3d/mesa
static gl_format swrastChooseTextureFormat(struct gl_context * ctx,
					   GLint internalFormat,
					   GLenum format,
					   GLenum type)
{
    if (internalFormat == GL_RGB)
	return MESA_FORMAT_XRGB8888;
    return _mesa_choose_tex_format(ctx, internalFormat, format, type);
}
예제 #2
0
파일: swrast.c 프로젝트: airlied/mesa
static mesa_format swrastChooseTextureFormat(struct gl_context * ctx,
                                           GLenum target,
					   GLint internalFormat,
					   GLenum format,
					   GLenum type)
{
    if (internalFormat == GL_RGB)
	return MESA_FORMAT_B8G8R8X8_UNORM;
    return _mesa_choose_tex_format(ctx, target, internalFormat, format, type);
}