mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
cogl/gl-framebuffer: Split up into FBO and back drivers
One is for when we're painting to the back buffer (onscreen), and the other when we're painting to an FBO (offscreen). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>
This commit is contained in:

committed by
Robert Mader

parent
a6b0376a6c
commit
60e1516b1c
@ -1979,9 +1979,14 @@ meta_onscreen_native_new (MetaRendererNative *renderer_native,
|
||||
int height)
|
||||
{
|
||||
MetaOnscreenNative *onscreen_native;
|
||||
CoglFramebufferDriverConfig driver_config;
|
||||
|
||||
driver_config = (CoglFramebufferDriverConfig) {
|
||||
.type = COGL_FRAMEBUFFER_DRIVER_TYPE_BACK,
|
||||
};
|
||||
onscreen_native = g_object_new (META_TYPE_ONSCREEN_NATIVE,
|
||||
"context", cogl_context,
|
||||
"driver-config", &driver_config,
|
||||
"width", width,
|
||||
"height", height,
|
||||
NULL);
|
||||
|
Reference in New Issue
Block a user