1
Fork 0
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:
Jesse Buhagiar 2021-05-25 23:21:31 +10:00 committed by Ali Mohammad Pur
parent 343e66b816
commit ebe38639bc

View file

@ -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) {