summaryrefslogtreecommitdiff
path: root/cogl/cogl-texture-driver.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-05-23 14:47:57 +0100
committerRobert Bragg <robert@linux.intel.com>2012-08-06 14:27:44 +0100
commit81bb87e03736d3d8cdefca47299627d68b0d9455 (patch)
treefc8dfb2d171da569cba35f38bf29ae8d1e2a7111 /cogl/cogl-texture-driver.h
parente58b21017ece64d87c4d2380d58e45876d214c65 (diff)
downloadcogl-81bb87e03736d3d8cdefca47299627d68b0d9455.tar.gz
Use the internal format to check if the texture size is supported
Until now, we hardcoded the internal format to GL_RGBA and used the internal format returned by pixel_format_to_gl() as the format for checking the texture size and format we're asked to create. Let's use the proper internal format/format from now on. This is needed as a later patch introduces DEPTH and DEPTH_STENCIL textures. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit ec45f60ee2545f88302da314bcdbe1439c4ba9c9)
Diffstat (limited to 'cogl/cogl-texture-driver.h')
-rw-r--r--cogl/cogl-texture-driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogl/cogl-texture-driver.h b/cogl/cogl-texture-driver.h
index 15133814..d4b2b0d8 100644
--- a/cogl/cogl-texture-driver.h
+++ b/cogl/cogl-texture-driver.h
@@ -147,6 +147,7 @@ struct _CoglTextureDriver
CoglBool
(* size_supported) (CoglContext *ctx,
GLenum gl_target,
+ GLenum gl_intformat,
GLenum gl_format,
GLenum gl_type,
int width,