1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

LibGL: Use simpler syntax for GL_SCISSOR_BOX retrieval

This commit is contained in:
Jelle Raaijmakers 2021-11-28 22:26:58 +01:00 committed by Andreas Kling
parent 7ad70f623e
commit 0be2a76ee7

View file

@ -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: