mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibGL: Implement glCompileShader
This commit is contained in:
parent
d5277ecdfe
commit
42ef5c9e12
Notes:
sideshowbarker
2024-07-17 03:02:19 +09:00
Author: https://github.com/sunverwerth
Commit: 42ef5c9e12
Pull-request: https://github.com/SerenityOS/serenity/pull/16225
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/supercomputer7
2 changed files with 8 additions and 2 deletions
|
@ -62,8 +62,12 @@ void GLContext::gl_shader_source(GLuint shader, GLsizei count, GLchar const** st
|
|||
|
||||
void GLContext::gl_compile_shader(GLuint shader)
|
||||
{
|
||||
dbgln("gl_compile_shader({}) unimplemented ", shader);
|
||||
TODO();
|
||||
auto it = m_allocated_shaders.find(shader);
|
||||
// FIXME: implement check "GL_INVALID_VALUE is generated if shader is not a value generated by OpenGL."
|
||||
RETURN_WITH_ERROR_IF(it == m_allocated_shaders.end(), GL_INVALID_OPERATION);
|
||||
|
||||
// NOTE: We are ignoring the compilation result here since it is tracked inside the shader object
|
||||
(void)it->value->compile();
|
||||
}
|
||||
|
||||
GLuint GLContext::gl_create_program()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue