cmake: Add to CMAKE_MODULE_PATH before project() to allow Platform cmake modules

The project() command normally includes the platform-specific module
Platform/${CMAKE_SYSTEM_NAME}.cmake.  To support loading that module
from the project's cmake module directory rather than just the system
cmake module directory, extend CMAKE_MODULE_PATH before calling
project().

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
.gitignore: Only ignore generated cmake_install.cmake files, not *.cmake

waffle contains many *.cmake files, and will potentially have more added
in the future; .gitignore should not ignore these files.  Narrow the
ignore pattern from *.cmake to just the generated file
cmake_install.cmake.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
waffle: Post-release version bump

waffle-1.2 was recently released, so bump the version on master to 1.2.75.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
egl: Fix call to eglBindAPI for WAFFLE_OPENGL_ES3

The switch statement which translated WAFFLE_OPENGL_$API to
EGL_OPENGL*_API lacked a case for WAFFLE_OPENGL_ES3.

This codepath, which is part of waffle_context_create(),  was never
exercised until recently because eglChooseConfig(EGL_OPENGL_ES3_BIT_KHR)
failed against Mesa.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
cmake: Remove stale comment about C99

Waffle now required C99.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
android: Build with -std=c99

Waffle now requires C99.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
waffle: Declare loop iterators the C99 way

That is, declare all loop iterators like this:

    for (int i = 0; ...)

rather than:

    int i;
    ...
    for (i = 0; ...)

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
waffle: Add waffle-1.1.1 release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit dd44e8746c6e1a1dce53709904bd51694b292b44)
doc: Add waffle-1.1.2 release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 85ec706204347698a55e94290d569d7420537083)
doc: Add missing sha256 sums to release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 7a8b7c2b0238181d9bc26971869d47a8a4a1695c)
doc: Add waffle-1.2.1 release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 3aae85cc533f73b856f1d8d9a939756b8a9ceeb9)
doc: Add waffle-1.2.2 release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 7dd52413a6835fab99073c38942921f7a6c81515)
doc: Add missing sha256 sums to release notes

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 1c0b3833855ae3a8c19478f082c92c738e9dad26)
glx: make unsuccessful context creation not terminate the whole process

glXCreateContextAttribs() emits GLXBadFBConfig under some circumstances,
and Xlib's default error handler calls exit(). To avoid the exit(),
install a temporary error handlers around the call to
glXCreateContextAttribs().