summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLUtils.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2021-05-24 16:11:06 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-24 19:03:25 +0100
commitd6c84ca4df9d91f0ab8a871eda228b21893f7371 (patch)
treea7306c0af506fe519622fcf2a275814812dd8b5e /Userland/Libraries/LibGL/GLUtils.cpp
parent24e74750d5c31c510bc42b3295f3f618026e57bb (diff)
downloadserenity-d6c84ca4df9d91f0ab8a871eda228b21893f7371.zip
LibGL: Implement glReadPixels() stub with argument validation
Diffstat (limited to 'Userland/Libraries/LibGL/GLUtils.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLUtils.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/GLUtils.cpp b/Userland/Libraries/LibGL/GLUtils.cpp
index 539aacfb32..1fa3467864 100644
--- a/Userland/Libraries/LibGL/GLUtils.cpp
+++ b/Userland/Libraries/LibGL/GLUtils.cpp
@@ -78,4 +78,9 @@ void glHint(GLenum target, GLenum mode)
void glReadBuffer(GLenum mode)
{
g_gl_context->gl_read_buffer(mode);
-} \ No newline at end of file
+}
+
+void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
+{
+ g_gl_context->gl_read_pixels(x, y, width, height, format, type, pixels);
+}