mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:27:44 +00:00
LibGL: Add GL_SHADING_LANGUAGE_VERSION
to glGetString
This commit is contained in:
parent
6643775999
commit
033f224966
2 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,7 @@ extern "C" {
|
||||||
#define GL_RENDERER 0x1F01
|
#define GL_RENDERER 0x1F01
|
||||||
#define GL_VERSION 0x1F02
|
#define GL_VERSION 0x1F02
|
||||||
#define GL_EXTENSIONS 0x1F03
|
#define GL_EXTENSIONS 0x1F03
|
||||||
|
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
#define GL_MAX_TEXTURE_SIZE 0x0D33
|
#define GL_MAX_TEXTURE_SIZE 0x0D33
|
||||||
|
|
|
@ -365,6 +365,8 @@ GLubyte* SoftwareGLContext::gl_get_string(GLenum name)
|
||||||
return reinterpret_cast<GLubyte*>(const_cast<char*>("1.5"));
|
return reinterpret_cast<GLubyte*>(const_cast<char*>("1.5"));
|
||||||
case GL_EXTENSIONS:
|
case GL_EXTENSIONS:
|
||||||
return reinterpret_cast<GLubyte*>(const_cast<char*>(""));
|
return reinterpret_cast<GLubyte*>(const_cast<char*>(""));
|
||||||
|
case GL_SHADING_LANGUAGE_VERSION:
|
||||||
|
return reinterpret_cast<GLubyte*>(const_cast<char*>("0.0"));
|
||||||
default:
|
default:
|
||||||
dbgln_if(GL_DEBUG, "glGetString(): Unknown enum name!");
|
dbgln_if(GL_DEBUG, "glGetString(): Unknown enum name!");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue