mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
buffer: splits out GL specific code
As part of an on-going effort to be able to support non-opengl drivers for Cogl this splits out the opengl specific code from cogl-buffer.c into driver/gl/cogl-buffer-gl.c Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 4d7094a979ff2cbbe4054f4a44ca05fc41a9e447)
This commit is contained in:
@ -39,6 +39,7 @@
|
||||
#include "cogl-attribute-private.h"
|
||||
#include "cogl-attribute-gl-private.h"
|
||||
#include "cogl-pipeline-progend-glsl-private.h"
|
||||
#include "cogl-buffer-gl-private.h"
|
||||
|
||||
typedef struct _ForeachChangedBitState
|
||||
{
|
||||
@ -396,3 +397,16 @@ _cogl_gl_flush_attributes_state (CoglFramebuffer *framebuffer,
|
||||
if (copy)
|
||||
cogl_object_unref (copy);
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_gl_disable_all_attributes (CoglContext *ctx)
|
||||
{
|
||||
_cogl_bitmask_clear_all (&ctx->enable_builtin_attributes_tmp);
|
||||
_cogl_bitmask_clear_all (&ctx->enable_texcoord_attributes_tmp);
|
||||
_cogl_bitmask_clear_all (&ctx->enable_custom_attributes_tmp);
|
||||
|
||||
/* XXX: we can pass a NULL source pipeline here because we know a
|
||||
* source pipeline only needs to be referenced when enabling
|
||||
* attributes. */
|
||||
apply_attribute_enable_updates (ctx, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user