Fixed GetPixel() in GLES2 driver

This commit is contained in:
n00b
2024-12-05 22:19:50 -05:00
parent 32e1e0a00f
commit 5a24dc445b
6 changed files with 45 additions and 40 deletions

View File

@@ -1409,6 +1409,10 @@ Uint32 rc_getPixel(int x, int y)
if(y < 0 || y >= rc_window_size.Height)
y = 0;
#ifdef RC_DRIVER_GLES2
y = rc_canvas[rc_active_canvas].texture->getSize().Height - (y+1);
#endif // RC_DRIVER_GLES2
irr::video::ITexture* texture = rc_canvas[rc_active_canvas].texture;