summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2021-08-16 18:18:41 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-18 20:30:58 +0200
commit894d81c1b84e90572cd276a765680f72c13aac7f (patch)
treef3a8110f1c68053f6f90a5af7226dc41dc5c5103 /Userland/Libraries/LibGL
parent5b9c87a8b53a24402f8b976f095ae3f8850d9008 (diff)
downloadserenity-894d81c1b84e90572cd276a765680f72c13aac7f.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
index 981fb0e03c..c24e450030 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
@@ -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;