winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2012
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
712 discussions
Start a n
N
ew thread
Nozomi Kodama : d3dx9_36: Add some traces.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 3c278d7ec3ee7394a918e0fa9af6e7a95c3accea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3c278d7ec3ee7394a918e0fa9…
Author: Nozomi Kodama <Nozomi.Kodama(a)yahoo.com> Date: Fri Jul 20 04:32:50 2012 +0800 d3dx9_36: Add some traces. --- dlls/d3dx9_36/math.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 68 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=3c278d7ec3ee7394a918e…
1
0
0
0
Alexandre Julliard : wined3d: Fetch GL functions from the WGL driver table, including glFinish and glFlush.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: d7250e97edfeb628f6076cba34828c3789fec5a6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d7250e97edfeb628f6076cba3…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 19 15:37:25 2012 +0200 wined3d: Fetch GL functions from the WGL driver table, including glFinish and glFlush. --- dlls/wined3d/arb_program_shader.c | 2 +- dlls/wined3d/buffer.c | 6 +++--- dlls/wined3d/device.c | 4 ++-- dlls/wined3d/directx.c | 21 ++++++++------------- dlls/wined3d/drawprim.c | 2 +- dlls/wined3d/surface.c | 16 ++++++++-------- dlls/wined3d/swapchain.c | 2 +- dlls/wined3d/wined3d_gl.h | 13 ++++--------- 8 files changed, 28 insertions(+), 38 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d7250e97edfeb628f6076…
1
0
0
0
Alexandre Julliard : winex11: Get rid of the glGetIntegerv wrapper.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 72e873873e1549e9b3a23d726552264a7ba51f9e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=72e873873e1549e9b3a23d726…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 20 13:21:20 2012 +0200 winex11: Get rid of the glGetIntegerv wrapper. --- dlls/winex11.drv/opengl.c | 42 +----------------------------------------- 1 files changed, 1 insertions(+), 41 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 5d1c5a8..c4b364e 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -316,11 +316,9 @@ static void (*pglXCopySubBufferMESA)(Display *dpy, GLXDrawable drawable, int x, /* Standard OpenGL */ static void (*pglFinish)(void); static void (*pglFlush)(void); -static void (*pglGetIntegerv)(GLenum,GLint*); static void wglFinish(void); static void wglFlush(void); -static void wglGetIntegerv(GLenum pname, GLint* params); static int GLXErrorHandler(Display *dpy, XErrorEvent *event, void *arg) { @@ -494,7 +492,6 @@ static BOOL has_opengl(void) do { p##func = opengl_funcs.gl.p_##func; opengl_funcs.gl.p_##func = w##func; } while(0) REDIRECT( glFinish ); REDIRECT( glFlush ); - REDIRECT( glGetIntegerv ); #undef REDIRECT pglXGetProcAddressARB = wine_dlsym(opengl_handle, "glXGetProcAddressARB", NULL, 0); @@ -1730,43 +1727,6 @@ static HDC glxdrv_wglGetCurrentDC( struct wgl_context *ctx ) return ctx->hdc; } -/* WGL helper function which handles differences in glGetIntegerv from WGL and GLX */ -static void wglGetIntegerv(GLenum pname, GLint* params) -{ - wine_tsx11_lock(); - switch(pname) - { - case GL_DEPTH_BITS: - { - struct wgl_context *ctx = NtCurrentTeb()->glContext; - - pglGetIntegerv(pname, params); - /** - * if we cannot find a Wine Context - * we only have the default wine desktop context, - * so if we have only a 24 depth say we have 32 - */ - if (!ctx && *params == 24) { - *params = 32; - } - TRACE("returns GL_DEPTH_BITS as '%d'\n", *params); - break; - } - case GL_ALPHA_BITS: - { - struct wgl_context *ctx = NtCurrentTeb()->glContext; - - pglXGetFBConfigAttrib(gdi_display, ctx->fmt->fbconfig, GLX_ALPHA_SIZE, params); - TRACE("returns GL_ALPHA_BITS as '%d'\n", *params); - break; - } - default: - pglGetIntegerv(pname, params); - break; - } - wine_tsx11_unlock(); -} - static void flush_pixmap( struct wgl_context *ctx ) { char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )]; @@ -2735,7 +2695,7 @@ static BOOL X11DRV_wglBindTexImageARB( struct wgl_pbuffer *object, int iBuffer ) TRACE("drawable=%lx, context=%p\n", object->drawable, prev_context); tmp_context = pglXCreateNewContext(gdi_display, object->fmt->fbconfig, object->fmt->render_type, prev_context, True); - pglGetIntegerv(object->texture_bind_target, &prev_binded_texture); + opengl_funcs.gl.p_glGetIntegerv(object->texture_bind_target, &prev_binded_texture); /* Switch to our pbuffer */ pglXMakeCurrent(gdi_display, object->drawable, tmp_context);
1
0
0
0
Alexandre Julliard : winex11: Remove unused fields in the PBuffer object.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 76ae99a426ce31bd32a59aa616aeeebba5529ce9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=76ae99a426ce31bd32a59aa61…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 20 12:35:24 2012 +0200 winex11: Remove unused fields in the PBuffer object. --- dlls/winex11.drv/opengl.c | 21 +++++---------------- 1 files changed, 5 insertions(+), 16 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 83cc90d..5d1c5a8 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -163,13 +163,10 @@ struct wgl_context struct wgl_pbuffer { Drawable drawable; - Display* display; WineGLPixelFormat* fmt; int width; int height; int* attribList; - HDC hdc; - int use_render_texture; /* This is also the internal texture format */ int texture_bind_target; int texture_bpp; @@ -1968,16 +1965,10 @@ static struct wgl_pbuffer *X11DRV_wglCreatePbufferARB( HDC hdc, int iPixelFormat TRACE("(%p, %d, %d, %d, %p)\n", hdc, iPixelFormat, iWidth, iHeight, piAttribList); - if (0 >= iPixelFormat) { - ERR("(%p): unexpected iPixelFormat(%d) <= 0, returns NULL\n", hdc, iPixelFormat); - SetLastError(ERROR_INVALID_PIXEL_FORMAT); - return NULL; /* unexpected error */ - } - /* Convert the WGL pixelformat to a GLX format, if it fails then the format is invalid */ fmt = ConvertPixelFormatWGLtoGLX(gdi_display, iPixelFormat, TRUE /* Offscreen */, &nCfgs); if(!fmt) { - ERR("(%p): unexpected iPixelFormat(%d) > nFormats(%d), returns NULL\n", hdc, iPixelFormat, nCfgs); + ERR("(%p): invalid pixel format %d\n", hdc, iPixelFormat); SetLastError(ERROR_INVALID_PIXEL_FORMAT); return NULL; } @@ -1987,8 +1978,6 @@ static struct wgl_pbuffer *X11DRV_wglCreatePbufferARB( HDC hdc, int iPixelFormat SetLastError(ERROR_NO_SYSTEM_RESOURCES); return NULL; } - object->hdc = hdc; - object->display = gdi_display; object->width = iWidth; object->height = iHeight; object->fmt = fmt; @@ -2156,7 +2145,7 @@ static BOOL X11DRV_wglDestroyPbufferARB( struct wgl_pbuffer *object ) TRACE("(%p)\n", object); wine_tsx11_lock(); - pglXDestroyPbuffer(object->display, object->drawable); + pglXDestroyPbuffer(gdi_display, object->drawable); wine_tsx11_unlock(); HeapFree(GetProcessHeap(), 0, object); return GL_TRUE; @@ -2201,12 +2190,12 @@ static BOOL X11DRV_wglQueryPbufferARB( struct wgl_pbuffer *object, int iAttribut switch (iAttribute) { case WGL_PBUFFER_WIDTH_ARB: wine_tsx11_lock(); - pglXQueryDrawable(object->display, object->drawable, GLX_WIDTH, (unsigned int*) piValue); + pglXQueryDrawable(gdi_display, object->drawable, GLX_WIDTH, (unsigned int*) piValue); wine_tsx11_unlock(); break; case WGL_PBUFFER_HEIGHT_ARB: wine_tsx11_lock(); - pglXQueryDrawable(object->display, object->drawable, GLX_HEIGHT, (unsigned int*) piValue); + pglXQueryDrawable(gdi_display, object->drawable, GLX_HEIGHT, (unsigned int*) piValue); wine_tsx11_unlock(); break; @@ -2757,7 +2746,7 @@ static BOOL X11DRV_wglBindTexImageARB( struct wgl_pbuffer *object, int iBuffer ) opengl_funcs.gl.p_glCopyTexImage2D(object->texture_target, 0, object->use_render_texture, 0, 0, object->width, object->height, 0); /* Switch back to the original drawable and upload the pbuffer-texture */ - pglXMakeCurrent(object->display, prev_drawable, prev_context); + pglXMakeCurrent(gdi_display, prev_drawable, prev_context); pglXDestroyContext(gdi_display, tmp_context); wine_tsx11_unlock(); return GL_TRUE;
1
0
0
0
Alexandre Julliard : opengl32: Use proper handles for PBuffers instead of raw pointers.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 6a3aa4eb497da281a0700302dbd7f8757dd82a7f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a3aa4eb497da281a0700302d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 20 12:25:01 2012 +0200 opengl32: Use proper handles for PBuffers instead of raw pointers. --- dlls/opengl32/make_opengl | 7 ++- dlls/opengl32/tests/opengl.c | 2 +- dlls/opengl32/wgl.c | 80 ++++++++++++++++++++++++--------------- dlls/winex11.drv/opengl.c | 85 +++++++++++++++--------------------------- include/wine/wgl_driver.h | 19 +++++---- 5 files changed, 95 insertions(+), 98 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6a3aa4eb497da281a0700…
1
0
0
0
Alexandre Julliard : opengl32: Add a mechanism for managing different types of OpenGL handles.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 98bd066c952c4d54a44c6da18521a0b6363f4a81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=98bd066c952c4d54a44c6da18…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Jul 20 12:27:19 2012 +0200 opengl32: Add a mechanism for managing different types of OpenGL handles. --- dlls/opengl32/wgl.c | 80 ++++++++++++++++++++++++++++---------------------- 1 files changed, 45 insertions(+), 35 deletions(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 85eaf22..b06847c 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -78,12 +78,22 @@ extern BOOL WINAPI GdiSwapBuffers( HDC hdc ); #define MAX_WGL_HANDLES 1024 +enum wgl_handle_type +{ + HANDLE_CONTEXT = 0 << 12, + HANDLE_TYPE_MASK = 15 << 12 +}; + struct wgl_handle { UINT handle; DWORD tid; - struct wgl_context *context; struct opengl_funcs *funcs; + union + { + struct wgl_context *context; /* for HANDLE_CONTEXT */ + struct wgl_handle *next; /* for free handles */ + } u; }; static struct wgl_handle wgl_handles[MAX_WGL_HANDLES]; @@ -106,24 +116,24 @@ static inline struct opengl_funcs *get_dc_funcs( HDC hdc ) return funcs; } -static inline HGLRC next_handle( struct wgl_handle *ptr ) +static inline HANDLE next_handle( struct wgl_handle *ptr, enum wgl_handle_type type ) { WORD generation = HIWORD( ptr->handle ) + 1; if (!generation) generation++; - ptr->handle = MAKELONG( ptr - wgl_handles, generation ); + ptr->handle = MAKELONG( ptr - wgl_handles, generation ) | type; return ULongToHandle( ptr->handle ); } -/* the current handle is assumed valid and doesn't need locking */ -static inline struct wgl_handle *get_current_handle_ptr(void) +/* the current context is assumed valid and doesn't need locking */ +static inline struct wgl_handle *get_current_context_ptr(void) { if (!NtCurrentTeb()->glCurrentRC) return NULL; - return &wgl_handles[LOWORD(NtCurrentTeb()->glCurrentRC)]; + return &wgl_handles[LOWORD(NtCurrentTeb()->glCurrentRC) & ~HANDLE_TYPE_MASK]; } -static struct wgl_handle *get_handle_ptr( HGLRC handle ) +static struct wgl_handle *get_handle_ptr( HANDLE handle, enum wgl_handle_type type ) { - unsigned int index = LOWORD( handle ); + unsigned int index = LOWORD( handle ) & ~HANDLE_TYPE_MASK; EnterCriticalSection( &wgl_section ); if (index < handle_count && ULongToHandle(wgl_handles[index].handle) == handle) @@ -139,22 +149,22 @@ static void release_handle_ptr( struct wgl_handle *ptr ) if (ptr) LeaveCriticalSection( &wgl_section ); } -static HGLRC alloc_handle( struct wgl_context *context, struct opengl_funcs *funcs ) +static HANDLE alloc_handle( enum wgl_handle_type type, struct opengl_funcs *funcs, void *user_ptr ) { - HGLRC handle = 0; + HANDLE handle = 0; struct wgl_handle *ptr = NULL; EnterCriticalSection( &wgl_section ); if ((ptr = next_free)) - next_free = (struct wgl_handle *)next_free->context; + next_free = next_free->u.next; else if (handle_count < MAX_WGL_HANDLES) ptr = &wgl_handles[handle_count++]; if (ptr) { - ptr->context = context; ptr->funcs = funcs; - handle = next_handle( ptr ); + ptr->u.context = user_ptr; + handle = next_handle( ptr, type ); } else SetLastError( ERROR_NOT_ENOUGH_MEMORY ); LeaveCriticalSection( &wgl_section ); @@ -164,7 +174,7 @@ static HGLRC alloc_handle( struct wgl_context *context, struct opengl_funcs *fun static void free_handle_ptr( struct wgl_handle *ptr ) { ptr->handle |= 0xffff; - ptr->context = (struct wgl_context *)next_free; + ptr->u.next = next_free; ptr->funcs = NULL; next_free = ptr; LeaveCriticalSection( &wgl_section ); @@ -187,11 +197,11 @@ BOOL WINAPI wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) struct wgl_handle *src, *dst; BOOL ret = FALSE; - if (!(src = get_handle_ptr( hglrcSrc ))) return FALSE; - if ((dst = get_handle_ptr( hglrcDst ))) + if (!(src = get_handle_ptr( hglrcSrc, HANDLE_CONTEXT ))) return FALSE; + if ((dst = get_handle_ptr( hglrcDst, HANDLE_CONTEXT ))) { if (src->funcs != dst->funcs) SetLastError( ERROR_INVALID_HANDLE ); - else ret = src->funcs->wgl.p_wglCopyContext( src->context, dst->context, mask ); + else ret = src->funcs->wgl.p_wglCopyContext( src->u.context, dst->u.context, mask ); } release_handle_ptr( dst ); release_handle_ptr( src ); @@ -203,7 +213,7 @@ BOOL WINAPI wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) */ BOOL WINAPI wglDeleteContext(HGLRC hglrc) { - struct wgl_handle *ptr = get_handle_ptr( hglrc ); + struct wgl_handle *ptr = get_handle_ptr( hglrc, HANDLE_CONTEXT ); if (!ptr) return FALSE; @@ -214,7 +224,7 @@ BOOL WINAPI wglDeleteContext(HGLRC hglrc) return FALSE; } if (hglrc == NtCurrentTeb()->glCurrentRC) wglMakeCurrent( 0, 0 ); - ptr->funcs->wgl.p_wglDeleteContext( ptr->context ); + ptr->funcs->wgl.p_wglDeleteContext( ptr->u.context ); free_handle_ptr( ptr ); return TRUE; } @@ -225,14 +235,14 @@ BOOL WINAPI wglDeleteContext(HGLRC hglrc) BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc) { BOOL ret = TRUE; - struct wgl_handle *ptr, *prev = get_current_handle_ptr(); + struct wgl_handle *ptr, *prev = get_current_context_ptr(); if (hglrc) { - if (!(ptr = get_handle_ptr( hglrc ))) return FALSE; + if (!(ptr = get_handle_ptr( hglrc, HANDLE_CONTEXT ))) return FALSE; if (!ptr->tid || ptr->tid == GetCurrentThreadId()) { - ret = ptr->funcs->wgl.p_wglMakeCurrent( hdc, ptr->context ); + ret = ptr->funcs->wgl.p_wglMakeCurrent( hdc, ptr->u.context ); if (ret) { if (prev) prev->tid = 0; @@ -276,11 +286,11 @@ HGLRC WINAPI wglCreateContextAttribsARB( HDC hdc, HGLRC share, const int *attrib struct opengl_funcs *funcs = get_dc_funcs( hdc ); if (!funcs || !funcs->ext.p_wglCreateContextAttribsARB) return 0; - if (share && !(share_ptr = get_handle_ptr( share ))) return 0; - if ((context = funcs->ext.p_wglCreateContextAttribsARB( hdc, share_ptr ? share_ptr->context : NULL, + if (share && !(share_ptr = get_handle_ptr( share, HANDLE_CONTEXT ))) return 0; + if ((context = funcs->ext.p_wglCreateContextAttribsARB( hdc, share_ptr ? share_ptr->u.context : NULL, attribs ))) { - ret = alloc_handle( context, funcs ); + ret = alloc_handle( HANDLE_CONTEXT, funcs, context ); if (!ret) funcs->wgl.p_wglDeleteContext( context ); } release_handle_ptr( share_ptr ); @@ -296,15 +306,15 @@ HGLRC WINAPI wglCreateContextAttribsARB( HDC hdc, HGLRC share, const int *attrib BOOL WINAPI wglMakeContextCurrentARB( HDC draw_hdc, HDC read_hdc, HGLRC hglrc ) { BOOL ret = TRUE; - struct wgl_handle *ptr, *prev = get_current_handle_ptr(); + struct wgl_handle *ptr, *prev = get_current_context_ptr(); if (hglrc) { - if (!(ptr = get_handle_ptr( hglrc ))) return FALSE; + if (!(ptr = get_handle_ptr( hglrc, HANDLE_CONTEXT ))) return FALSE; if (!ptr->tid || ptr->tid == GetCurrentThreadId()) { ret = (ptr->funcs->ext.p_wglMakeContextCurrentARB && - ptr->funcs->ext.p_wglMakeContextCurrentARB( draw_hdc, read_hdc, ptr->context )); + ptr->funcs->ext.p_wglMakeContextCurrentARB( draw_hdc, read_hdc, ptr->u.context )); if (ret) { if (prev) prev->tid = 0; @@ -351,11 +361,11 @@ BOOL WINAPI wglShareLists(HGLRC hglrcSrc, HGLRC hglrcDst) BOOL ret = FALSE; struct wgl_handle *src, *dst; - if (!(src = get_handle_ptr( hglrcSrc ))) return FALSE; - if ((dst = get_handle_ptr( hglrcDst ))) + if (!(src = get_handle_ptr( hglrcSrc, HANDLE_CONTEXT ))) return FALSE; + if ((dst = get_handle_ptr( hglrcDst, HANDLE_CONTEXT ))) { if (src->funcs != dst->funcs) SetLastError( ERROR_INVALID_HANDLE ); - else ret = src->funcs->wgl.p_wglShareLists( src->context, dst->context ); + else ret = src->funcs->wgl.p_wglShareLists( src->u.context, dst->u.context ); } release_handle_ptr( dst ); release_handle_ptr( src ); @@ -367,9 +377,9 @@ BOOL WINAPI wglShareLists(HGLRC hglrcSrc, HGLRC hglrcDst) */ HDC WINAPI wglGetCurrentDC(void) { - struct wgl_handle *context = get_current_handle_ptr(); + struct wgl_handle *context = get_current_context_ptr(); if (!context) return 0; - return context->funcs->wgl.p_wglGetCurrentDC( context->context ); + return context->funcs->wgl.p_wglGetCurrentDC( context->u.context ); } /*********************************************************************** @@ -383,7 +393,7 @@ HGLRC WINAPI wglCreateContext(HDC hdc) if (!funcs) return 0; if (!(context = funcs->wgl.p_wglCreateContext( hdc ))) return 0; - ret = alloc_handle( context, funcs ); + ret = alloc_handle( HANDLE_CONTEXT, funcs, context ); if (!ret) funcs->wgl.p_wglDeleteContext( context ); return ret; } @@ -696,7 +706,7 @@ PROC WINAPI wglGetProcAddress(LPCSTR lpszProc) void *local_func; OpenGL_extension ext; const OpenGL_extension *ext_ret; - struct wgl_handle *context = get_current_handle_ptr(); + struct wgl_handle *context = get_current_context_ptr(); TRACE("(%s)\n", lpszProc);
1
0
0
0
Alexandre Julliard : opengl32: Add supported wgl extension functions to the OpenGL function table.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 1b9455e65d169ebff45c7c2fccab66dc5942e4f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1b9455e65d169ebff45c7c2fc…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 17 00:00:55 2012 +0200 opengl32: Add supported wgl extension functions to the OpenGL function table. --- dlls/opengl32/make_opengl | 121 +++++++++++----- dlls/opengl32/opengl_ext.c | 32 ++++- dlls/opengl32/opengl_ext.h | 3 + dlls/opengl32/opengl_norm.c | 4 - dlls/opengl32/wgl.c | 328 +++++++++++++++++++++++++++++++++++++------ dlls/winex11.drv/opengl.c | 306 +++++++++++------------------------------ include/wine/wgl_driver.h | 25 +++- 7 files changed, 501 insertions(+), 318 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1b9455e65d169ebff45c7…
1
0
0
0
Alexandre Julliard : opengl32: Move the wgl functions to the main OpenGL function table.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 4c0779006efa0f491d13c6df42b26bb44258ff51 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4c0779006efa0f491d13c6df4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jul 18 23:58:41 2012 +0200 opengl32: Move the wgl functions to the main OpenGL function table. --- dlls/gdi32/driver.c | 73 +----------------------------------------- dlls/gdi32/opengl.c | 4 +- dlls/opengl32/make_opengl | 46 ++++++++++++++++++++++++-- dlls/opengl32/opengl_norm.c | 28 +++++++++++++++- dlls/opengl32/wgl.c | 56 +++++++++++++++++--------------- dlls/wined3d/directx.c | 10 ++++-- dlls/winex11.drv/opengl.c | 41 ++++++++++++------------ include/wine/gdi_driver.h | 26 ++------------- include/wine/wgl_driver.h | 20 +++++++++++- 9 files changed, 152 insertions(+), 152 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4c0779006efa0f491d13c…
1
0
0
0
Alexandre Julliard : opengl32: Declare input pointers as const in function prototypes.
by Alexandre Julliard
20 Jul '12
20 Jul '12
Module: wine Branch: master Commit: 782e96b910ca2c90b2518c14db7f6c9358eef010 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=782e96b910ca2c90b2518c14d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 19 22:17:14 2012 +0200 opengl32: Declare input pointers as const in function prototypes. --- dlls/opengl32/make_opengl | 5 +- dlls/opengl32/opengl_ext.c | 1626 +++++++++++++++++++------------------- dlls/opengl32/opengl_norm.c | 484 ++++++------ include/wine/wgl_driver.h | 1868 +++++++++++++++++++++--------------------- 4 files changed, 1992 insertions(+), 1991 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=782e96b910ca2c90b2518…
1
0
0
0
Alexandre Julliard : gdi32: Remove left-over debug trace.
by Alexandre Julliard
19 Jul '12
19 Jul '12
Module: wine Branch: master Commit: 6a8ded433bcabee8b50b333c161aa3387d688cf0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a8ded433bcabee8b50b333c1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jul 19 20:27:39 2012 +0200 gdi32: Remove left-over debug trace. --- dlls/gdi32/dibdrv/objects.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/dlls/gdi32/dibdrv/objects.c b/dlls/gdi32/dibdrv/objects.c index b3f058d..04548ce 100644 --- a/dlls/gdi32/dibdrv/objects.c +++ b/dlls/gdi32/dibdrv/objects.c @@ -1991,10 +1991,6 @@ static BOOL pattern_brush(dibdrv_physdev *pdev, dib_brush *brush, dib_info *dib, static BOOL null_brush(dibdrv_physdev *pdev, dib_brush *brush, dib_info *dib, int num, const RECT *rects, INT rop) { - if (rop == 1) - { - ERR("(%p, %s, BLACKNESS)\n", pdev, wine_dbgstr_rect(rects)); - } return TRUE; }
1
0
0
0
← Newer
1
...
23
24
25
26
27
28
29
...
72
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Results per page:
10
25
50
100
200