Use GL_MAX_TEXTURE_SIZE on GLES when checking supported tex size
authorNeil Roberts <neil@linux.intel.com>
Thu, 8 Jul 2010 17:37:01 +0000 (18:37 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 9 Jul 2010 10:14:15 +0000 (11:14 +0100)
commita65429363e5c9dc03f84df3b8d4a95988b602dd1
tree03ea5be4728510bd26b201e6ca70e40265c64461
parenteb24d2a252b33ce86f9bfa476b12c683d88a4776
Use GL_MAX_TEXTURE_SIZE on GLES when checking supported tex size

Under big GL, _cogl_texture_driver_size_supported uses the proxy
texture to check whether the given texture size is supported. Proxy
textures aren't available under GLES so previously this would just
return TRUE to assume all texture sizes are supported. This patch
makes it use glGetIntegerv with GL_MAX_TEXTURE_SIZE to give a second
best guess.

This fixes the sliced texture backend so that it will use slices when
the texture is too big.
clutter/cogl/cogl/driver/gles/cogl-texture-driver.c