Skip to content
  1. Jul 07, 2014
  2. Jul 03, 2014
  3. Jun 30, 2014
  4. Jun 17, 2014
    • Neil Roberts's avatar
      Use the EGL_KHR_surfacless_context extension · 52a646ab
      Neil Roberts authored
      
      
      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: default avatarRobert Bragg <robert.bragg@intel.com>
      (cherry picked from commit e5f28f1e75db9bdc4f2688f420a74f908f96cf76)
      
      Conflicts:
      	cogl/winsys/cogl-winsys-egl-kms.c
      	cogl/winsys/cogl-winsys-egl-x11.c
      52a646ab
    • Neil Roberts's avatar
      Add a COGL_EXT_IN_GLES3 option to specify extensions that are in GLES3 · eb7c3781
      Neil Roberts authored
      
      
      Some features that were previously available as an extension in GLES2
      are now in core in GLES3 so we should be able to specify that with the
      gles_availability mask of COGL_EXT_BEGIN so that GL implementations
      advertising GLES3 don't have to additionally advertise the extension
      for us to take advantage of it.
      
      Reviewed-by: default avatarRobert Bragg <robert.bragg@intel.com>
      (cherry picked from commit 4d892cd97558da61ba526f947ac0555ebab632d2)
      eb7c3781
  5. Jun 09, 2014
    • Chun-wei Fan's avatar
      MSVC 2010+ Projects: Update "Installation" Process · f735220a
      Chun-wei Fan authored
      Currently, due to the way that Visual Studio 2010+ projects are handled,
      the "install" project does not re-build upon changes to the sources, as it
      does not believe that its dependencies have changed, although the changed
      sources are automatically recompiled.  This means that if a part or more
      of the solution does not build, or if the sources need some other fixes
      or enhancements, the up-to-date build is not copied automatically, which
      can be misleading.
      
      Improve on the situation by forcing the "install" project to trigger its
      rebuild, so that the updated binaries can be copied.  This does trigger an
      MSBuild warning, but having that warning is way better than not having an
      up-to-date build, especially during testing and development.
      f735220a
  6. May 19, 2014
  7. Apr 30, 2014
  8. Apr 22, 2014
  9. Apr 17, 2014
    • Chun-wei Fan's avatar
      Visual Studio Builds: Avoid Implicit Link to SDL · 2e0989bb
      Chun-wei Fan authored
      Cogl, when built with the SDL winsys, includes the SDL headers in its
      headers, which causes main() to be defined to SDL's main() wrapper on
      Windows, which means that SDL2.lib and SDL2main.lib need to be linked to
      every single program that links to Cogl with the SDL winsys.
      
      Avoid this behavior by defining SDL_MAIN_HANDLED in the CFLAGS of the
      sample and test programs, and let people know that this is the case.
      2e0989bb
  10. Apr 16, 2014
    • Chun-wei Fan's avatar
      MSVC Builds: Don't Link to SDL Automatically · 6feaaf29
      Chun-wei Fan authored
      
      
      Remove #pragma directives that causes any applications that use Cogl to
      link to the SDL libraries when Cogl was built with the SDL winsys.  This is
      mainly due to the availability of both SDL-1.x and SDL-2.x support in the
      SDL winsys, where different libraries are linked for SDL-1.x and SDL-2.x.
      
      To avoid having to link to the SDL/SDL2 libraries when the application code
      is not directly using SDL/SDL2, define SDL_MAIN_HANDLED in the CFLAGS so
      that SDL's wrapper main() implementation will not be used when the
      application is being built.
      
      Reviewed-by: default avatarNeil Roberts <neil@linux.intel.com>
      (cherry picked from commit c3035912833eabe1f6dadbea23c78e595aac79dc)
      6feaaf29
    • Chun-wei Fan's avatar
      Update cogl.symbols and cogl-path.symbols · b2d74eed
      Chun-wei Fan authored
      
      
      In Lionel's work for supporting introspection better for Cogl, a number of
      public symbols were added for Cogl and Cogl-Path, so add these symbols to
      cogl.symbols and cogl-path.symbols so that they can be exported, which will
      fix the build of the Cogl conformance test and the introspection files
      for the Windows-based builds.
      
      Reviewed-by: default avatarNeil Roberts <neil@linux.intel.com>
      b2d74eed
  11. Apr 07, 2014
    • Chun-wei Fan's avatar
      Visual Studio Builds: Update .def Files Generation · 3e494a13
      Chun-wei Fan authored
      Define COGL_HAS_GTYPE_SUPPORT during the preprocessing of the .symbols
      files so that the _get_gtype symbols can be exported.
      3e494a13
    • Chun-wei Fan's avatar
      Visual Studio Builds: Update README.txt's · 39d30a35
      Chun-wei Fan authored
      Let people know that for Visual Studio builds GLib is a hard requirement,
      and let the people also know that SDL-2.x is now used for builds supporting
      the SDL winsys.  Also let people know that current situation regarding
      building and linking Cogl applications with the SDL winsys built in.
      39d30a35
  12. Mar 21, 2014
  13. Mar 20, 2014