summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-11-28 22:26:58 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-11 23:15:24 +0100
commit0be2a76ee71a10bf056fabe5152b21ff18fed14f (patch)
tree8f8aa43dddc66318aea651a20671d6324109a79c /Userland/Libraries
parent7ad70f623e6ca4ba2a3b7a326d7025bf8107c36f (diff)
downloadserenity-0be2a76ee71a10bf056fabe5152b21ff18fed14f.zip
LibGL: Use simpler syntax for `GL_SCISSOR_BOX` retrieval
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
index 3d65bb8088..d64a328ba8 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
@@ -1532,10 +1532,10 @@ void SoftwareGLContext::gl_get_integerv(GLenum pname, GLint* data)
break;
case GL_SCISSOR_BOX: {
auto scissor_box = m_rasterizer.options().scissor_box;
- *(data + 0) = scissor_box.x();
- *(data + 1) = scissor_box.y();
- *(data + 2) = scissor_box.width();
- *(data + 3) = scissor_box.height();
+ data[0] = scissor_box.x();
+ data[1] = scissor_box.y();
+ data[2] = scissor_box.width();
+ data[3] = scissor_box.height();
break;
}
case GL_UNPACK_ALIGNMENT: