mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 08:00:12 +01:00
mesa: make get_texbuffer_format() global
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
1722c2498f
commit
c8191213b5
2 changed files with 5 additions and 3 deletions
|
|
@ -5169,8 +5169,8 @@ _mesa_CompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset,
|
|||
"glCompressedTextureSubImage3D");
|
||||
}
|
||||
|
||||
static mesa_format
|
||||
get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
|
||||
mesa_format
|
||||
_mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
|
||||
{
|
||||
if (ctx->API == API_OPENGL_COMPAT) {
|
||||
switch (internalFormat) {
|
||||
|
|
@ -5353,7 +5353,7 @@ mesa_format
|
|||
_mesa_validate_texbuffer_format(const struct gl_context *ctx,
|
||||
GLenum internalFormat)
|
||||
{
|
||||
mesa_format format = get_texbuffer_format(ctx, internalFormat);
|
||||
mesa_format format = _mesa_get_texbuffer_format(ctx, internalFormat);
|
||||
GLenum datatype;
|
||||
|
||||
if (format == MESA_FORMAT_NONE)
|
||||
|
|
|
|||
|
|
@ -157,6 +157,8 @@ extern struct gl_texture_image *
|
|||
_mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj,
|
||||
GLenum target, GLint level);
|
||||
|
||||
mesa_format
|
||||
_mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat);
|
||||
|
||||
/**
|
||||
* Return the base-level texture image for the given texture object.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue