mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibGL: Fix incorrect sign compare caused by GLsizei changes
This commit is contained in:
parent
343e66b816
commit
ebe38639bc
1 changed files with 2 additions and 2 deletions
|
@ -1251,8 +1251,8 @@ void SoftwareGLContext::gl_read_pixels(GLint x, GLint y, GLsizei width, GLsizei
|
|||
|
||||
if (format == GL_DEPTH_COMPONENT) {
|
||||
// Read from depth buffer
|
||||
for (size_t i = 0; i < height; ++i) {
|
||||
for (size_t j = 0; j < width; ++j) {
|
||||
for (GLsizei i = 0; i < height; ++i) {
|
||||
for (GLsizei j = 0; j < width; ++j) {
|
||||
float depth = m_rasterizer.get_depthbuffer_value(x + j, y + i);
|
||||
|
||||
switch (type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue