From 894d81c1b84e90572cd276a765680f72c13aac7f Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Mon, 16 Aug 2021 18:18:41 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibGL/SoftwareGLContext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(const_cast("SerenityOS OpenGL")); case GL_VERSION: - return reinterpret_cast(const_cast("OpenGL 1.2 SerenityOS")); + return reinterpret_cast(const_cast("1.5")); + case GL_EXTENSIONS: + return reinterpret_cast(const_cast("")); default: dbgln_if(GL_DEBUG, "glGetString(): Unknown enum name!"); break;