RFC: wrapper around CoglTexture2D and CoglTexture2DSliced
By transitioning to the Cogl2 API, we now often create CoglTexture2D
s explicitly. On modern hardware that is usually not a problem, but as mentioned in the spec, older hardware might have limitations that require us to use CoglTexture2DSliced
(AFAIK it exists only for that reason).
I wrote a quick (and not yet complete) wrapper around them, checking for maximum texture sizes and NPOT (not power of two) capabilities. What do you think, is that a good approach? @feaneron, @jadahl, @carlosg If so, I'd extend it to more/all usages.
Fixes #453 (closed) and makes some other code shorter where we had checks for that before
Related: !261 (merged)
Edited by Robert Mader