Commit Graph

358 Commits

Author SHA1 Message Date
Alex Henrie 6479e32cf0 winex11: Avoid double initialization of variables in OpenGL functions.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
André Hentschel 3bddfebe99 winex11.drv: Remove unused code (Clang). 2014-12-04 14:03:22 +01:00
Matteo Bruni 7ba434b4fa winex11.drv: Add support for GLX_OML_swap_method. 2014-11-11 14:20:48 +09:00
Matteo Bruni 3ac85842d3 winex11.drv: Actually report WGL_SWAP_EXCHANGE_ARB as the swap method. 2014-11-11 14:20:39 +09:00
Ken Thomases 351fae1206 winex11: Consolidate duplicate code from glxdrv_wglSetPixelFormat() and X11DRV_wglSetPixelFormatWINE(). 2014-05-06 15:45:12 +02:00
Ken Thomases 809166def7 winex11: Remove set-but-never-read hwnd and fbconfig_id fields of struct x11drv_escape_set_drawable. 2014-04-01 10:44:57 +02:00
Ken Thomases 4325ecdca8 winex11: Maintain the swap interval when the drawable is recreated.
The swap interval is a property of the GLX drawable, which is destroyed and
recreated by set_gl_drawable_parent() and wglSetPixelFormatWINE().  When that
happens, copy the interval from the old gl_drawable and apply it at the next
call to wglSwapBuffers().
2014-04-01 10:44:34 +02:00
Ken Thomases eb235b6b98 winex11: Remove unused "parent" parameter from create_gl_drawable(). 2014-03-21 11:17:32 +01:00
Ken Thomases 6696e7d9e1 winex11: Don't reset OpenGL swap interval of window on SetParent(). 2014-03-21 11:17:23 +01:00
Rico Schüller 2fa9b7ebb5 opengl32: Use opengl xml registry files. 2013-11-05 20:38:21 +01:00
Frédéric Delanoy 387fafd39e winex11.drv: Use BOOL type where appropriate. 2013-10-09 10:08:54 +02:00
Sebastian Lackner 4e9646a7f7 winex11: Call sync_context for DC_GL_CHILD_WIN drawables before swapping buffers. 2013-10-02 13:03:19 +02:00
Ken Thomases cf973bd28d winex11: Don't trace a garbage value or read past end of caller's array in X11DRV_wglChoosePixelFormatARB(). 2013-09-20 14:11:24 +02:00
Roderick Colenbrander af58ccebba winex11: Support GLX_MESA_swap_control for WGL_EXT_swap_control. 2013-09-18 13:14:47 +02:00
Roderick Colenbrander dee3418d3a winex11: Support WGL_EXT_swap_control_tear. 2013-09-04 16:27:29 +02:00
Roderick Colenbrander e95e77a19f winex11: Refactor wglSwapIntervalEXT for use with glXSwapIntervalEXT.
In preparation for WGL_EXT_swap_control_tear support, transition to using glXSwapIntervalEXT.
2013-09-04 16:27:25 +02:00
Charles Davis d8cd280579 winex11.drv: Advertise some legacy WGL extensions in the GL_EXTENSIONS string. 2013-08-16 11:55:24 +02:00
Ričardas Barkauskas cde84a7bcc winex11.drv: When skipping unknown attribute also skip its value. 2013-07-02 11:09:30 +02:00
Austin English 44e69805e9 winex11.drv: Print the architecture when showing driver problems. 2013-06-27 13:38:53 +02:00
Matteo Bruni 667bd327be winex11.drv: Fix wglCreateContextAttribsARB's attributes handling for real. 2013-05-31 16:39:19 +02:00
Roderick Colenbrander 1f47580e9c winex11: Store opengl swap interval with gl_drawable. 2013-05-23 19:02:59 +02:00
Henri Verbeet 5206e512e2 winex11: Don't ignore hShareContext in X11DRV_wglCreateContextAttribsARB(). 2013-04-23 15:35:07 +02:00
Matteo Bruni d62e5874a9 winex11.drv: Print the error in wglCreateContextAttribsARB() when context creation fails. 2013-04-22 17:55:49 +02:00
Matteo Bruni 6118676c20 winex11.drv: Fix attributes conversion in wglCreateContextAttribsARB(). 2013-04-11 19:32:28 +02:00
Alexander Monakov 7d61c7b158 winex11.drv: Simplify test for pbuffer availability. 2013-04-01 13:17:34 +02:00
Alexandre Julliard c2d53af33b winex11: Don't use uninitialized variables (Coverity). 2013-03-26 17:15:53 +01:00
Gerald Pfeifer e835f034fb winex11: Push down variable attrib down in create_gl_drawable. 2013-01-28 15:34:48 +01:00
Alexandre Julliard 951415b602 winex11: Store the client window in the window data again, now that it can be accessed from all threads. 2013-01-23 19:06:32 +01:00
Andrew Talbot 9acc966688 winex11.drv: Indentation fix. 2012-12-24 13:30:11 +01:00
Alexandre Julliard e5b18af9e8 winex11: Avoid using the system GL headers. 2012-11-07 18:12:03 +01:00
Alexandre Julliard f950f41bfe Revert "winex11: Refuse to set the pixel format for HWND_MESSAGE windows."
This reverts commit 53806917a3.
Tests show that this is allowed.
2012-10-23 16:39:32 +02:00
Ken Thomases 60c60ece80 winex11: Fix name of extension WGL_NV_render_texture_rectangle. 2012-10-22 11:34:07 +02:00
Alexandre Julliard 64aed7c5be winex11: Don't delete the DC if it's not for a valid pbuffer. 2012-10-18 19:19:42 +02:00
Alexandre Julliard c6e0daa200 winex11: Recreate the GL drawable when changing the window parent. 2012-10-10 20:33:54 +02:00
Alexandre Julliard 47983d819f winex11: Create a surface even for OpenGL windows, to allow painting the non-client area. 2012-10-10 18:56:53 +02:00
Alexandre Julliard e41a482890 user32: Add a Wine-specific entry point to set the pixel format of a window. 2012-10-03 23:08:22 +02:00
Alexandre Julliard 3d73e0a357 winex11: Add a helper function to get a pixel format index. 2012-10-03 23:01:19 +02:00
Alexandre Julliard 4ac1a5ac60 winex11: Allow changing the pixel format of a window from a different thread. 2012-10-03 11:19:35 +02:00
Alexandre Julliard 28721d69f4 winex11: Get rid of the OpenGL GDI driver. 2012-10-02 22:06:06 +02:00
Alexandre Julliard 05fe1e4e35 winex11: Move the FLUSH_GL_DRAWABLE implementation to the main ExtEscape routine. 2012-10-02 21:56:43 +02:00
Alexandre Julliard d8de77f01e winex11: Pass the source drawable to the FLUSH_GL_DRAWABLE escape. 2012-10-02 21:50:54 +02:00
Alexandre Julliard 53806917a3 winex11: Refuse to set the pixel format for HWND_MESSAGE windows. 2012-10-02 19:52:41 +02:00
Alexandre Julliard 988f2fde86 winex11: Store the full visual info for the default visual. 2012-09-26 14:40:39 +02:00
Alexandre Julliard a39659fcc9 winex11: Disable client-side rendering for OpenGL windows. 2012-09-10 16:16:05 +02:00
Alexandre Julliard 115d488183 winex11: Add helper functions to retrieve drawable information for a window or DC. 2012-09-10 11:39:28 +02:00
Alexandre Julliard 025f4aed1e winex11: Move the fps tracing to opengl32. 2012-09-10 11:38:30 +02:00
Alexandre Julliard 05c32b9b89 gdi32: Move the SwapBuffers entry point to the OpenGL driver. 2012-09-10 11:38:28 +02:00
Alexandre Julliard b4e3674747 winex11: Get the information from the drawable structure in SwapBuffers. 2012-09-10 11:38:25 +02:00
Alexandre Julliard bde5156876 winex11: Get the current pixel format from the drawable structure in wglMakeContextCurrentARB. 2012-09-07 16:19:17 +02:00
Alexandre Julliard 11013af0a1 winex11: Get the current pixel format from the drawable structure in wglMakeCurrent. 2012-09-07 16:19:16 +02:00