From 9b6fb32dc2c34477d01eb6c6e5dd3d37569c6e84 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 16 Jan 2013 19:49:15 +0100 Subject: [PATCH] Fixed copypaste errors in format selection. --- src/egl_context.c | 2 +- src/glx_context.c | 2 +- src/wgl_context.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl_context.c b/src/egl_context.c index 9e6fa438..6a0cbe94 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -131,7 +131,7 @@ int _glfwCreateContext(_GLFWwindow* window, if (fbconfig->blueBits) setEGLattrib(EGL_BLUE_SIZE, fbconfig->blueBits); if (fbconfig->alphaBits) - setEGLattrib(EGL_BLUE_SIZE, fbconfig->alphaBits); + setEGLattrib(EGL_ALPHA_SIZE, fbconfig->alphaBits); if (fbconfig->depthBits) setEGLattrib(EGL_DEPTH_SIZE, fbconfig->depthBits); diff --git a/src/glx_context.c b/src/glx_context.c index 7b57f632..8b7da9b8 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -286,7 +286,7 @@ int _glfwCreateContext(_GLFWwindow* window, if (fbconfig->blueBits) setGLXattrib(GLX_BLUE_SIZE, fbconfig->blueBits); if (fbconfig->alphaBits) - setGLXattrib(GLX_BLUE_SIZE, fbconfig->alphaBits); + setGLXattrib(GLX_ALPHA_SIZE, fbconfig->alphaBits); if (fbconfig->depthBits) setGLXattrib(GLX_DEPTH_SIZE, fbconfig->depthBits); diff --git a/src/wgl_context.c b/src/wgl_context.c index 8ec09049..f2d5dd05 100644 --- a/src/wgl_context.c +++ b/src/wgl_context.c @@ -197,7 +197,7 @@ int _glfwCreateContext(_GLFWwindow* window, if (fbconfig->blueBits) setWGLattrib(WGL_BLUE_BITS_ARB, fbconfig->blueBits); if (fbconfig->alphaBits) - setWGLattrib(WGL_BLUE_BITS_ARB, fbconfig->alphaBits); + setWGLattrib(WGL_ALPHA_BITS_ARB, fbconfig->alphaBits); if (fbconfig->depthBits) setWGLattrib(WGL_DEPTH_BITS_ARB, fbconfig->depthBits);