From c10bf9ba9c18a5207cb58b7cbb1da56c6b0eca52 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 17 Jun 2013 17:42:22 +0200 Subject: [PATCH] Fixed incorrect hint default. The default for the GLFW_ALPHA_BITS hint was zero instead of 8. --- README.md | 2 ++ src/window.c | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index cff89f9b..ec443a17 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ See the [GLFW 3.0 documentation](http://www.glfw.org/docs/3.0/). ## Changelog - Bugfix: The `-Wall` flag was not used with Clang and other GCC compatibles + - Bugfix: The default for `GLFW_ALPHA_BITS` was set to zero ## Contact @@ -184,6 +185,7 @@ skills. - Bradley Smith - Julian Squires - Johannes Stein + - Justin Stoecker - Nathan Sweet - TTK-Bandit - Sergey Tikhomirov diff --git a/src/window.c b/src/window.c index f0f5d7a1..00f7a12a 100644 --- a/src/window.c +++ b/src/window.c @@ -284,6 +284,7 @@ void glfwDefaultWindowHints(void) _glfw.hints.redBits = 8; _glfw.hints.greenBits = 8; _glfw.hints.blueBits = 8; + _glfw.hints.alphaBits = 8; _glfw.hints.depthBits = 24; _glfw.hints.stencilBits = 8; }