mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue