Camilla Berglund
7f2e4d8ace
Win32: Fix possible leak of dummy context
2016-06-23 14:17:54 +02:00
Camilla Berglund
6f313ff245
Win32: Use helper window to load WGL extensions
...
This removes window re-creation logic by performing the initial context
creation on the helper window, simplifying both window and context
creation and paving the way for attaching to existing window handles
without compromising on context or framebuffer hint support.
2016-06-22 23:33:34 +02:00
Camilla Berglund
f2ba78e04b
Rename static functions to allow unity build
...
Fixes regression introduced by GLFW_CONTEXT_CREATION_API.
Fixes #783 .
2016-06-15 01:35:07 +02:00
Camilla Berglund
757eea2779
Update email address
2016-06-01 21:25:20 +02:00
Camilla Berglund
6a8e169001
Update copyright notice year
2016-06-01 21:25:19 +02:00
Camilla Berglund
bda031f4ac
Cleanup
2016-05-29 15:34:08 +02:00
Camilla Berglund
ef80beab81
Add run-time context creation API selection
...
Fixes #145 .
2016-05-04 17:00:07 +02:00
Camilla Berglund
f96d865b93
Cleanup
2016-03-28 20:16:53 +02:00
Camilla Berglund
2826f3d42f
Check success of MakeCurrent before updating TLS
...
Fixes #706 .
2016-02-18 09:37:19 +01:00
Camilla Berglund
45efb935c5
Use more GLFWbool
2015-12-13 15:09:33 +01:00
Camilla Berglund
12b6c56903
Add suffixes to platform specific helper functions
...
Also merge win32_tls.h into win32_platform.h.
2015-12-13 14:50:59 +01:00
Camilla Berglund
0a3b5952e0
Make WGL backend more readable
2015-12-13 14:49:55 +01:00
Camilla Berglund
fdc65e49e4
Fix bad Win32 updates
2015-12-10 12:16:13 +01:00
Camilla Berglund
75f1dfaf8a
Move DWM enabled test to file where it is used
2015-12-09 19:39:16 +01:00
Camilla Berglund
12903ee9b5
Remove no-op ReleaseDC
2015-11-21 20:55:12 +01:00
Camilla Berglund
d4079ad3a2
Move all context related members to _GLFWcontext
2015-11-09 23:52:02 +01:00
Camilla Berglund
b22a0ec7d8
There is only one ICD
2015-11-09 23:51:59 +01:00
Camilla Berglund
24f41c8c4c
Use only LoadLibraryA to match EGL backend
2015-11-08 15:35:15 +01:00
Camilla Berglund
7be8209d14
Add GLFW_CONTEXT_NO_ERROR window hint
...
This adds support for the GL_KHR_no_error extension.
2015-10-27 20:36:20 +01:00
Camilla Berglund
496f559c9a
Add GLFW_NO_API for creating context-less windows
2015-10-26 00:30:30 +01:00
Camilla Berglund
0eccf75f65
Replace GL booleans with public macros
2015-10-13 00:46:02 +02:00
Camilla Berglund
95a07f3340
Start 3.2
2015-10-12 21:59:49 +02:00
Camilla Berglund
7c6a8775eb
Fix error type for unavailable pixel format error
...
All backends reported this as GLFW_PLATFORM_ERROR, while the
documentation mandates GLFW_FORMAT_UNAVAILABLE.
2015-09-16 16:24:21 +02:00
Camilla Berglund
255f9f0234
Fix deadlock with negative swap interval on Aero
...
Fixes #587 .
2015-08-27 20:25:28 +02:00
Camilla Berglund
84b512c62c
Make all WGL functions dynamically loaded
2015-08-12 01:01:37 +02:00
Camilla Berglund
1f95fac699
Extension string type cleanup.
2015-07-28 14:12:16 +02:00
Camilla Berglund
04c057238b
Added support for EXT_framebuffer_sRGB.
...
Added sRGB extensions to standards conformance page.
2015-07-16 17:48:00 +02:00
Camilla Berglund
3a0b397054
Fixed regression for WGL full screen DWM hack.
...
The DwmFlush workaround for windowed windows on Nvidia caused jitter for
full screen windows. The workaround is now only used for windowed mode
windows.
Fixes #519 .
2015-06-15 20:19:49 +02:00
Camilla Berglund
38ca109766
Clarified context TLS function names.
2015-06-01 04:00:55 +02:00
Camilla Berglund
8309e0ecb0
Use DwmFlush when DWM is enabled.
...
Use DwmFlush instead of WGL_EXT_swap_control when desktop compositing is
enabled, to avoid the jitter of DWM and WGL vsync fighting.
Fixes #516 .
2015-05-21 18:28:53 +02:00
Camilla Berglund
905073a506
Simplified WGL extension logic.
...
Not applying this to GLX or EGL yet because Mesa.
2015-05-04 19:31:33 +02:00
Camilla Berglund
dc9d287e33
Comment cleanup.
2015-04-14 18:32:54 +02:00
Camilla Berglund
135be952fe
Added reporting of unlikely WGL extension error.
2015-04-14 18:32:53 +02:00
Camilla Berglund
c21a8573b4
Replaced comment with assertion.
2015-04-14 18:32:53 +02:00
Camilla Berglund
5c3f8efd23
Context config translation cleanup.
2015-04-10 13:18:26 +02:00
Camilla Berglund
1861cf4975
Removed stale comment.
2015-04-07 02:29:49 +02:00
Camilla Berglund
d493a82f9e
Various error fixes.
...
Fixed incorrect error types. Added missing error string prefixes.
Removed some invalid or superfluous error emissions. Clarified some
error strings. Joined error string lines to aid grep. Replaced some
generic error strings with specific ones. Documentation work.
Fixes #450 .
2015-03-15 15:52:27 +01:00
Camilla Berglund
d90f5e0429
Fixed debug bit not being set for OpenGL ES.
2015-02-27 02:53:21 +01:00
Camilla Berglund
44c899ce70
Added support for GL_KHR_context_flush_control.
2014-08-21 19:29:04 +02:00
Camilla Berglund
cfc47abf0d
Made context creation backends more consistent.
2014-08-21 19:29:04 +02:00
Doug Binks
55b5ca0bcc
Fixed WGL not re-creating for sRGB hint.
...
Fixes #312 .
2014-06-24 13:07:58 +02:00
Camilla Berglund
c9808586b3
Added GLFW_DOUBLEBUFFER.
2014-06-18 16:36:53 +02:00
Camilla Berglund
78efc18079
Split out TLS code into separate modules.
...
This allows the TLS code to be re-used by partial ports like EGL.
2014-03-30 15:24:09 +02:00
Camilla Berglund
6d8e78cc95
Further separation of window and context.
...
The context related parts of _GLFWwndconfig have been moved to
_GLFWctxconfig and given better names. Window hint and attribute
members have been renamed to match.
2014-03-06 20:07:58 +01:00
Camilla Berglund
0701d4ce6e
Made use of Win32 W-suffixed symbols explicit.
2014-03-06 18:30:14 +01:00
Camilla Berglund
611006af18
Updated API version in comment headers.
2014-01-22 01:32:00 +01:00
Camilla Berglund
0c0bb28d39
Allow setting swap interval to zero on DWM.
2013-12-04 08:00:53 +01:00
Camilla Berglund
ed98e06651
Clarified WGL missing OpenGL error.
2013-12-04 05:35:36 +01:00
Camilla Berglund
f54b4e174d
Fixed error code for missing GLES.
2013-08-21 11:56:48 +02:00
Camilla Berglund
3cfc400cf9
Simplified source file comment headers.
2013-07-30 14:46:52 +02:00