Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Windows ] AWTGLCanvas gives error when activating sRGB #78

Closed
JNightRider opened this issue Dec 11, 2024 · 1 comment
Closed

[ Windows ] AWTGLCanvas gives error when activating sRGB #78

JNightRider opened this issue Dec 11, 2024 · 1 comment

Comments

@JNightRider
Copy link

JNightRider commented Dec 11, 2024

Hello everyone.

I recently had an issue with Windows 11 turning on the sRGB option. If I run lwjgl3-awt on Linux, it runs without problems.

[ Error - Output ]

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Exception while creating the OpenGL context
	at org.lwjgl.opengl.awt.AWTGLCanvas.beforeRender(AWTGLCanvas.java:81)
	at org.lwjgl.opengl.awt.AWTGLCanvas.render(AWTGLCanvas.java:120)
	at org.lwjgl.opengl.awt.AWTTest$2.run(AWTTest.java:60)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.awt.AWTException: sRGB color space requested but WGL_EXT_framebuffer_sRGB is unavailable
	at org.lwjgl.opengl.awt.PlatformWin32GLCanvas.create(PlatformWin32GLCanvas.java:435)
	at org.lwjgl.opengl.awt.PlatformWin32GLCanvas.create(PlatformWin32GLCanvas.java:155)
	at org.lwjgl.opengl.awt.AWTGLCanvas.beforeRender(AWTGLCanvas.java:79)
	... 15 more

This can be reproduced using the examples provided by lwjgl3-awt by turning on the 'sRGB' option

@SWinxy
Copy link
Collaborator

SWinxy commented Dec 22, 2024

Fixed in 7043714

@SWinxy SWinxy closed this as completed Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants