mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibGL: Use simpler syntax for GL_SCISSOR_BOX
retrieval
This commit is contained in:
parent
7ad70f623e
commit
0be2a76ee7
Notes:
sideshowbarker
2024-07-17 22:57:37 +09:00
Author: https://github.com/gmta
Commit: 0be2a76ee7
Pull-request: https://github.com/SerenityOS/serenity/pull/11108
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/sunverwerth ✅
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