mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibGL: Use simpler syntax for GL_SCISSOR_BOX
retrieval
This commit is contained in:
parent
7ad70f623e
commit
0be2a76ee7
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue