mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 05:40:39 +02:00
intel: stub out CompressedTexSubImage2D instead of segfaulting.
This commit is contained in:
parent
095c3a5cb1
commit
dc58da3e06
3 changed files with 26 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ intelInitTextureFuncs(struct dd_function_table *functions)
|
|||
|
||||
/* compressed texture functions */
|
||||
functions->CompressedTexImage2D = intelCompressedTexImage2D;
|
||||
functions->CompressedTexSubImage2D = intelCompressedTexSubImage2D;
|
||||
functions->GetCompressedTexImage = intelGetCompressedTexImage;
|
||||
|
||||
functions->NewTextureObject = intelNewTextureObject;
|
||||
|
|
|
|||
|
|
@ -130,6 +130,16 @@ void intelCompressedTexImage2D( GLcontext *ctx, GLenum target, GLint level,
|
|||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage );
|
||||
|
||||
void intelCompressedTexSubImage2D(GLcontext * ctx,
|
||||
GLenum target,
|
||||
GLint level,
|
||||
GLint xoffset, GLint yoffset,
|
||||
GLsizei width, GLsizei height,
|
||||
GLenum format, GLsizei imageSize,
|
||||
const GLvoid * pixels,
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage);
|
||||
|
||||
void intelGetCompressedTexImage(GLcontext *ctx, GLenum target, GLint level,
|
||||
GLvoid *pixels,
|
||||
struct gl_texture_object *texObj,
|
||||
|
|
|
|||
|
|
@ -184,3 +184,18 @@ intelTexSubImage1D(GLcontext * ctx,
|
|||
format, type, pixels, packing, texObj, texImage);
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
intelCompressedTexSubImage2D(GLcontext * ctx,
|
||||
GLenum target,
|
||||
GLint level,
|
||||
GLint xoffset, GLint yoffset,
|
||||
GLsizei width, GLsizei height,
|
||||
GLenum format, GLsizei imageSize,
|
||||
const GLvoid * pixels,
|
||||
struct gl_texture_object *texObj,
|
||||
struct gl_texture_image *texImage)
|
||||
{
|
||||
fprintf(stderr, "stubbed CompressedTexSubImage2D: %dx%d@%dx%d\n",
|
||||
width, height, xoffset, yoffset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue