[gtk+/wip/gdk-gl: 25/31] gdk/x11: Adjust the pixel format's color size
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gdk-gl: 25/31] gdk/x11: Adjust the pixel format's color size
- Date: Thu, 14 Aug 2014 11:14:25 +0000 (UTC)
commit 9082c07b914d2aa029bfe799cb4ba19bd97e1c0f
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Aug 12 16:36:07 2014 +0100
gdk/x11: Adjust the pixel format's color size
The color size is the minimum value between all the color buffers.
gdk/x11/gdkglcontext-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index 7047a09..86c8d6d 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -482,10 +482,10 @@ update_pixel_format (GdkDisplay *display,
format->color_size = value;
glXGetFBConfigAttrib (dpy, config, GLX_GREEN_SIZE, &value);
- format->color_size = MAX (format->color_size, value);
+ format->color_size = MIN (format->color_size, value);
glXGetFBConfigAttrib (dpy, config, GLX_BLUE_SIZE, &value);
- format->color_size = MAX (format->color_size, value);
+ format->color_size = MIN (format->color_size, value);
glXGetFBConfigAttrib (dpy, config, GLX_ALPHA_SIZE, &format->alpha_size);
glXGetFBConfigAttrib (dpy, config, GLX_AUX_BUFFERS, &format->aux_buffers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]