summaryrefslogtreecommitdiff
path: root/cogl/cogl-gles2-context.c
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2013-06-30 17:01:09 +0100
committerRobert Bragg <robert@linux.intel.com>2014-01-01 17:43:05 +0000
commitf4b612f1b75e043f1852b9a32368cc37ab89308b (patch)
treeafa55930d1a0dfa960a04cd18d9e2fa3337d5665 /cogl/cogl-gles2-context.c
parentb742638a1ce581f5a2c9f15907361c3b0c1b178c (diff)
downloadcogl-f4b612f1b75e043f1852b9a32368cc37ab89308b.tar.gz
framebuffer: if size unknown; allocate for size/vp queries
This ensures framebuffers are implicitly allocated when querying the width, height or viewport width/height if the framebuffer's size is currently unknown. The plan is to allow texture backends to defer calculating the size of textures until they are allocated which in turn means we won't know the size of offscreen framebuffers until the texture has been allocated. Potentially we could be more specific about this in the future and only ensure the texture is allocated, but for now it will be simplest to just ensure the framebuffer is allocated. Note: in the case of onscreen buffers which are always initialized with a requested size we are careful to avoid triggering an allocation when this is queried otherwise we will see recursion when the winsys code queries the requested size during allocation. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'cogl/cogl-gles2-context.c')
0 files changed, 0 insertions, 0 deletions