mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
cc4aa97579
The _cogl_texture_driver_pixel_format_to_gl functions for OpenGL and OpenGLES convert CoglPixelFormats into corresponding gl enums that can be used to upload texture data. Previously we were only handling a few specific formats but this patch updates the functions to handle all the formats we know about. The functions now also switch() on the format so that we will get build time warnings if we forget to handle new formats in these functions. Reviewed-by: Neil Roberts <neil@linux.intel.com> |
||
---|---|---|
.. | ||
cogl-gl.c | ||
cogl-texture-driver-gl.c |