diff options
author | Robert Bragg <robert@linux.intel.com> | 2010-07-05 23:24:34 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2010-07-07 14:08:11 +0100 |
commit | e98ee6665bf51c679a1aa55e907cfa8962ef05cb (patch) | |
tree | 3a38afa93d82cdb15adb78c2d366d8eb8aee524f /cogl/cogl-context.h | |
parent | 7571cc1923a9cbae9797bb70f13d759f7a8a25cd (diff) | |
download | cogl-e98ee6665bf51c679a1aa55e907cfa8962ef05cb.tar.gz |
cogl-buffer: Track the last used bind target in CoglBuffer
This makes CoglBuffer track the last used bind target as a private
property. This is later used when binding a buffer to map instead of
always using the PIXEL_UNPACK target.
This also adds some additional sanity checks that code doesn't try to
nest binds to the same target or bind a buffer to multiple targets at
the same time.
Diffstat (limited to 'cogl/cogl-context.h')
-rw-r--r-- | cogl/cogl-context.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h index e0ad904f..645bb415 100644 --- a/cogl/cogl-context.h +++ b/cogl/cogl-context.h @@ -118,9 +118,7 @@ typedef struct gboolean legacy_depth_test_enabled; - /* PBOs */ - /* This can be used to check if a pbo is bound */ - CoglBuffer *current_pbo; + CoglBuffer *current_buffer[COGL_BUFFER_BIND_TARGET_COUNT]; /* Framebuffers */ GSList *framebuffer_stack; |