mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
LibGL: Complete glGetString implementation
GL_VERSION: The spec mandates the following format: x.y or x.y.z optionally followed by text separated by space. GL_EXTENSIONS: Return empty string. We do not support any extensions.
This commit is contained in:
parent
5b9c87a8b5
commit
894d81c1b8
Notes:
sideshowbarker
2024-07-18 05:30:30 +09:00
Author: https://github.com/sunverwerth Commit: https://github.com/SerenityOS/serenity/commit/894d81c1b84 Pull-request: https://github.com/SerenityOS/serenity/pull/9451 Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/alimpfard
@ -397,7 +397,9 @@ GLubyte* SoftwareGLContext::gl_get_string(GLenum name)
|
||||
case GL_RENDERER:
|
||||
return reinterpret_cast<GLubyte*>(const_cast<char*>("SerenityOS OpenGL"));
|
||||
case GL_VERSION:
|
||||
return reinterpret_cast<GLubyte*>(const_cast<char*>("OpenGL 1.2 SerenityOS"));
|
||||
return reinterpret_cast<GLubyte*>(const_cast<char*>("1.5"));
|
||||
case GL_EXTENSIONS:
|
||||
return reinterpret_cast<GLubyte*>(const_cast<char*>(""));
|
||||
default:
|
||||
dbgln_if(GL_DEBUG, "glGetString(): Unknown enum name!");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user