cogl-texture-3d: Use glTexSubImage3D through an indirect pointer
glTexSubImage3D was being called directly in cogl-texture-3d.c but the function is only available since GL version 1.2 so on Windows it won't be possible to directly link to it. Also under GLES it is only available conditionally in an extension.
This commit is contained in:
parent
943266db3b
commit
ccdcbbb46b
@ -49,6 +49,7 @@
|
||||
#endif
|
||||
|
||||
#define glTexImage3D ctx->drv.pf_glTexImage3D
|
||||
#define glTexSubImage3D ctx->drv.pf_glTexSubImage3D
|
||||
|
||||
static void _cogl_texture_3d_free (CoglTexture3D *tex_3d);
|
||||
|
||||
|
@ -356,6 +356,13 @@ COGL_FEATURE_FUNCTION (void, glTexImage3D,
|
||||
GLsizei depth, GLint border,
|
||||
GLenum format, GLenum type,
|
||||
const GLvoid *pixels))
|
||||
COGL_FEATURE_FUNCTION (void, glTexSubImage3D,
|
||||
(GLenum target, GLint level,
|
||||
GLint xoffset, GLint yoffset,
|
||||
GLint zoffset, GLsizei width,
|
||||
GLsizei height, GLsizei depth,
|
||||
GLenum format,
|
||||
GLenum type, const GLvoid *pixels))
|
||||
COGL_FEATURE_END ()
|
||||
|
||||
/* Available in GL 1.3 or the multitexture extension. These are
|
||||
|
Loading…
Reference in New Issue
Block a user