mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
Change GetCompressedTexImage in dd_function_table to not take const pointers.
They're changed by the intel driver implementation and thus not const. Fixes compilation warning.
This commit is contained in:
parent
6e8d21d72f
commit
61c3c2c363
5 changed files with 10 additions and 11 deletions
|
|
@ -132,8 +132,8 @@ void intelCompressedTexImage2D( GLcontext *ctx, GLenum target, GLint level,
|
|||
|
||||
void intelGetCompressedTexImage(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *pixels,
|
||||
const struct gl_texture_object *texObj,
|
||||
const struct gl_texture_image *texImage);
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage);
|
||||
|
||||
void intelSetTexOffset(__DRIcontext *pDRICtx, GLint texname,
|
||||
unsigned long long offset, GLint depth, GLuint pitch);
|
||||
|
|
|
|||
|
|
@ -663,12 +663,11 @@ intelGetTexImage(GLcontext * ctx, GLenum target, GLint level,
|
|||
void
|
||||
intelGetCompressedTexImage(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *pixels,
|
||||
const struct gl_texture_object *texObj,
|
||||
const struct gl_texture_image *texImage)
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage)
|
||||
{
|
||||
intel_get_tex_image(ctx, target, level, 0, 0, pixels,
|
||||
texObj, texImage, 1);
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -445,8 +445,8 @@ struct dd_function_table {
|
|||
*/
|
||||
void (*GetCompressedTexImage)(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *img,
|
||||
const struct gl_texture_object *texObj,
|
||||
const struct gl_texture_image *texImage);
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage);
|
||||
|
||||
/**
|
||||
* Called to query number of bytes of storage needed to store the
|
||||
|
|
|
|||
|
|
@ -3656,8 +3656,8 @@ _mesa_get_teximage(GLcontext *ctx, GLenum target, GLint level,
|
|||
void
|
||||
_mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *img,
|
||||
const struct gl_texture_object *texObj,
|
||||
const struct gl_texture_image *texImage)
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage)
|
||||
{
|
||||
GLuint size;
|
||||
|
||||
|
|
|
|||
|
|
@ -214,8 +214,8 @@ _mesa_get_teximage(GLcontext *ctx, GLenum target, GLint level,
|
|||
extern void
|
||||
_mesa_get_compressed_teximage(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *img,
|
||||
const struct gl_texture_object *texObj,
|
||||
const struct gl_texture_image *texImage);
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage);
|
||||
|
||||
extern const GLvoid *
|
||||
_mesa_validate_pbo_teximage(GLcontext *ctx, GLuint dimensions,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue