Skip to content

RFC: wrapper around CoglTexture2D and CoglTexture2DSliced

Robert Mader requested to merge rmader/mutter:clutter-texture-2d into master

By transitioning to the Cogl2 API, we now often create CoglTexture2Ds 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

Merge request reports