mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
60812e6a0e
Cogl already had a vtable for the texture driver. This ended up being used for some things that are not strictly related to texturing such as converting between pixel formats and GL enums. Some other functions that are driver dependent such as updating the features were not indirected through a vtable but instead switched directly by looking at the ctx->driver enum value. This patch normalises to the two uses by adding a separate vtable for driver functions not related to texturing and moves the pixel format conversion functions to it from the texture driver vtable. It also adds a context parameter to all of the functions in the new driver vtable so that they won't have to rely on the global context. |
||
---|---|---|
.. | ||
cogl-gl.c | ||
cogl-texture-driver-gl.c |