summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2014-04-01 14:54:39 +0100
committerNeil Roberts <neil@linux.intel.com>2014-06-17 12:07:39 +0100
commite5f28f1e75db9bdc4f2688f420a74f908f96cf76 (patch)
tree2d7a5c2cb87bdc52c042ad71561d95fccf690575 /NEWS
parent4d892cd97558da61ba526f947ac0555ebab632d2 (diff)
downloadcogl-e5f28f1e75db9bdc4f2688f420a74f908f96cf76.tar.gz
Use the EGL_KHR_surfacless_context extension
The surfaceless context extension can be used to bind a context without a surface. We can use this to avoid creating a dummy surface when the CoglContext is first created. Otherwise we have to have the dummy surface so that we can bind it before the first onscreen is created. The main awkward part of this patch is that theoretically according to the GL and GLES spec if you first bind a context without a surface then the default state for glDrawBuffers is GL_NONE instead of GL_BACK. In practice Mesa doesn't seem to do this but we need to be robust against a GL implementation that does. Therefore we track when the CoglContext is first used with a CoglOnscreen and force the glDrawBuffers state to be GL_BACK. There is a further awkward part in that GLES2 doesn't actually have a glDrawBuffers state but GLES3 does. GLES3 also defaults to GL_NONE in this case so if GLES3 is available then we have to be sure to set the state to GL_BACK. As far as I can tell that actually makes GLES3 incompatible with GLES2 because in theory if the application is not aware of GLES3 then it should be able to assume the draw buffer is always GL_BACK. Reviewed-by: Robert Bragg <robert.bragg@intel.com>
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions