Skip to content

tests: cover the win32 WGL OpenGL context#153

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/winlib-wgl
Open

tests: cover the win32 WGL OpenGL context#153
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests/winlib-wgl

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds a test for the win32 WGL OpenGL support.

An NSOpenGLPixelFormat and NSOpenGLContext are created, and an NSOpenGLView
backs a window with a current WGL context that reports a GL version, which
exercises Win32GLPixelFormat, Win32GLContext and the subwindow that binds the
WGL context.

It builds only for the winlib graphics backend with WGL and skips when the
backend or a GL drawable cannot be reached, so it is inert on the other
backends and in CI. It needs opengl32, which the Tests/winlib preamble links.

Adds a test for the win32 WGL OpenGL support.

An NSOpenGLPixelFormat and NSOpenGLContext are created, and an NSOpenGLView
backs a window with a current WGL context that reports a GL version, which
exercises Win32GLPixelFormat, Win32GLContext and the subwindow that binds the
WGL context.

It builds only for the winlib graphics backend with WGL and skips when the
backend or a GL drawable cannot be reached, so it is inert on the other
backends and in CI.  It needs opengl32, which the Tests/winlib preamble links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant