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
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
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
Alexandre Julliard
50da224be7
Revert "opengl32: Store alternative function in wglGetProcAddress."
...
This reverts commit e44f8eaa0f
.
It mixes up the driver function and the WINAPI wrapper.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-12 05:24:56 +01:00
Sebastian Lackner
e44f8eaa0f
opengl32: Store alternative function in wglGetProcAddress.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:25:59 +09:00
Alexandre Julliard
5c9ddc55dc
opengl32: Make it possible to use an alternative in wglGetProcAddress when an extension is missing.
2015-12-09 15:44:51 +09:00
Alex Henrie
56c045c68e
opengl32: Define the 2D identity matrix once, at the top of the file.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Alex Henrie
268070d9a8
opengl32: Avoid double initialization of variables in WGL functions.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Alex Henrie
b4eb8e846b
opengl32: Check the minor version when determining extension support.
...
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-02 23:02:21 +09:00
Matteo Bruni
bfd4836867
opengl32: Return a NULL pointer for functions requiring unsupported or disabled extensions.
2015-02-25 20:35:25 +09:00
Matteo Bruni
9a1f66a4db
opengl32: Filter disabled extensions on OpenGL core profile contexts too.
2015-02-25 20:35:24 +09:00
Matteo Bruni
9e45ae0413
opengl32: Introduce wrappers for glGetIntegerv and glGetStringi. (v3).
2015-02-11 22:22:57 +09:00
Ken Thomases
4a6743e913
opengl32: Fix get_current_context_type() to not shift the type bits down.
...
The result is compared directly with handle type values like HANDLE_CONTEXT
whose meaningful values are in the high nibble.
2015-02-03 12:45:35 +09:00
Matteo Bruni
1e48bbb7ac
opengl32: Don't use deprecated functions for extension checking purposes on core profile contexts.
2015-02-02 22:37:11 +09:00
Matteo Bruni
cf92569cdd
opengl32: Store the OpenGL context version in the handle value.
2015-01-16 20:15:57 +01:00
Alexandre Julliard
b72c8a7680
opengl32: Make sure the function table is initialized in all threads.
2014-06-25 11:51:31 +02:00
Frédéric Delanoy
1c53957f08
opengl32: Use BOOL type where appropriate.
2013-11-19 18:47:52 +01:00
Rico Schüller
8a23fbf56f
opengl32: Allow multiple extensions to support the same function.
...
This allows that gl functions are available for different extensions,
e.g. "glVertexP2ui" which is new GL_ARB_vertex_type_2_10_10_10_rev and
also in GL_VERSION_3_3. It is valid to get that function for each gl
version when GL_ARB_vertex_type_2_10_10_10_rev is in the extension list.
On the other hand that function is available, when the gl version is >= 3.3.
2013-11-05 20:38:21 +01:00
Frédéric Delanoy
129df098a2
opengl32: Use BOOL type where appropriate.
2013-10-31 09:58:43 +01:00
Akihiro Sagawa
33e05eb6c5
opengl32: Fix empty glyph handling.
2013-09-23 20:32:25 +02:00
Andrew Talbot
538a0e4a9e
opengl32: Remove unused variable.
2012-11-26 11:51:36 +01:00
Sam Edwards
001726fcbd
opengl32: Apply correct normals to text rendered with wglUseFontOutlines.
2012-11-08 15:37:50 +01:00
Alexandre Julliard
2480c9395b
opengl32: Get rid of wine_ prefix on generated functions.
2012-11-08 15:37:45 +01:00
Alexandre Julliard
a3d896897c
opengl32: Get rid of the extension removal hack in wglGetProcAddress and clean up the tracing.
2012-11-08 15:37:44 +01:00
Sam Edwards
ced7d66a11
opengl32: Implement the wglUseFontOutlines WGL_FONT_LINES format.
2012-11-07 13:55:37 +01:00
Sam Edwards
2a208bd2ad
opengl32: Implement wglUseFontOutlines curve smoothing.
2012-11-05 11:53:44 +01:00
Sam Edwards
a428416a8a
opengl32: Fix outline-font glyphs rendering with incorrect front faces.
2012-10-29 10:47:04 +01: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
Michael Stefaniuc
6a6806944c
opengl32: Move the opengl_ext.h include before the other Wine headers.
2012-09-05 11:48:19 +02:00
Alexandre Julliard
96e80c2623
gdi32: Move DescribePixelFormat and SetPixelFormat to the WGL driver.
2012-07-30 22:12:13 +02:00
Alexandre Julliard
5923e32ef1
opengl32: Store the modified extension string in the context.
2012-07-25 16:11:16 +02:00
Alexandre Julliard
5f157e18e2
opengl32: Store the context current DCs on the opengl32 side.
2012-07-25 16:11:05 +02:00
Alexandre Julliard
2077a58c21
opengl32: Allocate a separate context structure to store generic information.
2012-07-25 14:50:25 +02:00
Alexandre Julliard
719db58a92
opengl32: Load GLU functions from glu32.dll instead of the Unix library.
2012-07-23 15:51:14 +02:00
Alexandre Julliard
6a3aa4eb49
opengl32: Use proper handles for PBuffers instead of raw pointers.
2012-07-20 12:36:41 +02:00
Alexandre Julliard
98bd066c95
opengl32: Add a mechanism for managing different types of OpenGL handles.
2012-07-20 12:27:19 +02:00
Alexandre Julliard
1b9455e65d
opengl32: Add supported wgl extension functions to the OpenGL function table.
2012-07-20 00:40:42 +02:00
Alexandre Julliard
4c0779006e
opengl32: Move the wgl functions to the main OpenGL function table.
2012-07-19 22:50:37 +02:00
Alexandre Julliard
93eff3e862
opengl32: Call all OpenGL functions through the current context table and don't link against libGL.
2012-07-18 17:12:33 +02:00
Alexandre Julliard
df91c7bc83
opengl32: Redirect standard OpenGL functions through the TEB function table.
2012-07-18 17:12:29 +02:00
Alexandre Julliard
d66fa61e09
opengl32: Call OpenGL extension functions through the TEB function table.
2012-07-18 17:12:21 +02:00
Alexandre Julliard
edb0044e50
opengl32: Generate a function table with null OpenGL entry points and store it in the TEB.
2012-07-18 17:10:45 +02:00
Alexandre Julliard
8b97ff3278
opengl32: Mark invalid handles with ffff instead of 0.
2012-07-16 15:21:47 +02:00
Alexandre Julliard
83be88953b
opengl32: Make the WGL driver context-specific.
2012-06-29 20:41:36 +02:00
Alexandre Julliard
676194383c
opengl32: Don't allow making a thread current in multiple threads.
2012-06-29 20:41:35 +02:00
Alexandre Julliard
d89f7f2563
opengl32: Move checks of the context thread id to opengl32.
2012-06-29 20:41:35 +02:00
Alexandre Julliard
0045ec9dfb
opengl32: Use proper handles for GL contexts and pass a context pointer to the WGL driver functions.
2012-06-29 20:41:34 +02:00