Module: wine Branch: master Commit: d33a4da5ed397a1e0ecf4d1d02660b03e2eab2cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=d33a4da5ed397a1e0ecf4d1d02...
Author: Ken Thomases ken@codeweavers.com Date: Wed Sep 11 23:46:06 2013 -0500
winemac: Restrict DescribePixelFormat() to displayable pixel formats.
---
dlls/winemac.drv/opengl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winemac.drv/opengl.c b/dlls/winemac.drv/opengl.c index 7327e12..a3c5d48 100644 --- a/dlls/winemac.drv/opengl.c +++ b/dlls/winemac.drv/opengl.c @@ -3307,7 +3307,7 @@ static BOOL create_context(struct wgl_context *context, CGLContextObj share) */ int macdrv_wglDescribePixelFormat(HDC hdc, int fmt, UINT size, PIXELFORMATDESCRIPTOR *descr) { - int ret = nb_formats; + int ret = nb_displayable_formats; const pixel_format *pf; const struct color_mode *mode;