Paul Gofman
e392e0ac28
winex11.drv: Prioritize smaller depth formats when zero depth is requested in X11DRV_wglChoosePixelFormatARB().
...
Fixes Ancient Cities' black screen on Nvidia.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-04 21:43:27 +01:00
Paul Gofman
45f8b6924a
opengl32: Support PFD_DEPTH_DONTCARE flag in wglChoosePixelFormat().
...
With this flag set native implementation ignores cDepthBits but
cares to find a zero depth format if possible.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-12 14:49:05 +01:00
Alexandre Julliard
88d7aeee34
Update copyright info for 2021.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-02 15:17:17 +01:00
André Hentschel
77047c76dd
opengl32/tests: Don't test function directly when reporting GetLastError().
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-21 11:57:17 +01:00
Alexandre Julliard
c169bfb428
opengl32: Add stub for wglGetDefaultProcAddress().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48898
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 13:35:05 +02:00
Alexandre Julliard
b0e2d046fc
opengl32: Make wgl driver entry points WINAPI.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 13:33:20 +02:00
Alexandre Julliard
60d7923682
opengl32: Update to the current OpenGL spec.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 13:32:20 +02:00
Alexandre Julliard
29839b7fd9
opengl32: Specify the exact commit when fetching Khronos files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-23 13:27:49 +02:00
Michael Müller
ee12fb0e32
opengl32: Treat invalid pixel types as PFD_TYPE_RGBA in wglChoosePixelFormat.
...
Also fixes "Plebby Quest: The Crusades".
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43638
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 19:58:11 +02:00
Alexandre Julliard
81dc6240e8
Update copyright info for 2020.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-01 14:26:39 +01:00
Alexandre Julliard
8a576c9906
include: Add DECLSPEC_IMPORT on OpenGL functions when not building opengl32.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 22:46:52 +02:00
Stefan Riesenberger
4285c619a0
opengl32: Add wrapper for wglCreateContext.
...
Signed-off-by: Stefan Riesenberger <stefan.riesenberger@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:48:37 +01:00
Alexandre Julliard
9e0cb0125f
Update copyright info for 2019.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-09 09:58:16 -06:00
Kodama Nozomi
faff3b02fb
opengl32/tests: PFD_TYPE_RGBA should be in the iPixelType field, not in the flag field.
...
Signed-off-by: Kodama Nozomi <nozomi.kodama@yahoo.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-19 16:26:21 +02:00
Sebastian Lackner
e07230ed4e
opengl32: Add wrappers for glDebugMessageCallback to handle calling convention differences.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38402
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-09 12:59:43 +02:00
Alexandre Julliard
d900547f58
opengl32: Update to the current OpenGL spec.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-09 12:59:34 +02:00
Alex Henrie
1d49ceaa50
opengl/tests: Don't run Pbuffer tests if no Pbuffer can be created.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-04 15:12:16 +02:00
Michael Stefaniuc
17294a6b05
opengl32: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:01 +02:00
Michael Stefaniuc
54960cd825
opengl32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-04 14:22:48 +02:00
Henri Verbeet
3eaa23cbbf
winex11: Implement WGL_ARB_create_context_no_error.
...
Mostly because it's easy, and we'd like to use this from wined3d at some
point.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 21:30:51 +01:00
Alexandre Julliard
213bd4cffa
opengl32: Update to the current OpenGL spec.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 21:30:18 +01:00
Alexandre Julliard
e4fc05a2f0
Update copyright info for 2018.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 10:12:12 +01:00
Alexandre Julliard
c4e9e3fcb9
opengl32: Generate thunks for WGL extensions when possible.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 19:49:29 +02:00
Alexandre Julliard
278c89a846
opengl32: Only output enums for supported extensions, including WGL ones.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 19:49:29 +02:00
Alexandre Julliard
bbb71620cd
opengl32: Get type definitions from the XML files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 18:19:10 +02:00
Alexandre Julliard
fd3d5d6f82
opengl32: Convert the XML parser to use XML::LibXML.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 10:16:03 +02:00
Alexandre Julliard
2abeb7634c
opengl32: Remove no longer used support for generating thread-safe thunks.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 10:10:41 +02:00
Alexandre Julliard
17dffaac7d
opengl32: Get WGL function definitions from the XML files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-10 10:06:10 +02:00
Alexandre Julliard
e8767bed3c
opengl32: Store GL extensions in a private XML file instead of Perl arrays.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 20:14:56 +02:00
Alexandre Julliard
fd7fbc922a
opengl32/tests: Fix wglCreatePbufferARB prototype.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-09 19:55:54 +02:00
Matteo Bruni
d6851e6748
opengl32: Update to OpenGL 4.6.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-15 17:01:22 +02:00
Matteo Bruni
b4c5d73cc0
opengl32: Support a couple new typedefs in the XML.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-15 17:01:22 +02:00
Matteo Bruni
4d4a1477dc
opengl32/tests: Fix typo in ok() condition.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-15 17:01:22 +02:00
Józef Kucia
2901ccceb0
opengl32: Update OpenGL Registry files URLs.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-01 09:26:34 +02:00
Alexandre Julliard
02eda5ccb9
opengl32: Add some tests for last error with an invalid DC.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Daniel Lehman
079463828c
opengl32: Don't fail with both PFD_DOUBLEBUFFER_DONTCARE and PFD_STEREO_DONTCARE.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 13:58:31 +02:00
Daniel Lehman
53ac519915
opengl32/tests: Add tests for ChoosePixelFormat.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-23 13:58:30 +02:00
Alexandre Julliard
f89d01d94a
opengl32: Directly link to glu32.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-07 21:26:41 +02:00
Alexandre Julliard
5fff9bcb63
include: Add a glu.h header.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-07 20:48:28 +02:00
Daniel Lehman
55023fc037
opengl32/tests: Fix leak in opengl test (valgrind).
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-07 17:00:31 +01:00
Alexandre Julliard
1f8974e6e8
Update copyright info for 2017.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-02 16:05:08 +01:00
Daniel Lehman
37ee3870a2
opengl32: Set last error on invalid share in wglCreateContextAttribsARB.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-21 20:57:06 +01:00
Daniel Lehman
ed4271fae9
opengl32: Set last error on invalid hdc to wglCreateContextAttribsARB.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-21 20:57:06 +01:00
Sebastian Lackner
f784360cbe
opengl32/tests: Include wgl.h and remove duplicate declarations.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:14:08 +09:00
Henri Verbeet
ffb27c61c0
opengl32: Introduce WGL_WINE_query_renderer.
...
This is a fairly straightforward adaptation of GLX_MESA_query_renderer to WGL.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-16 12:10:06 +09:00
Matteo Bruni
5c77426d7f
opengl32: Move a TRACE to the proper place.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:07:43 +09:00
Alexandre Julliard
26d0a0a081
opengl32: Update to the current OpenGL spec.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-13 13:33:25 +09:00
Sebastian Lackner
68867e30b2
opengl32: Ensure extension tables generated by make_opengl contain earliest GL_VERSION for each function.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-13 13:23:40 +09:00
Alexandre Julliard
f6998ea4ce
Update copyright info for 2016.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-03 20:08:27 +01:00
Sebastian Lackner
f915f9db4c
opengl32: Add alternative function for glVertexAttribDivisor.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-12 05:26:53 +01:00