Internal change.

PiperOrigin-RevId: 798190254
Change-Id: Ie3a3b6e074511991cc6ccb35f2c26c6d9ae7ccd8
This commit is contained in:
Google DeepMind
2025-08-22 06:40:56 -07:00
committed by Copybara-Service
parent debbd7c916
commit 42d8454555
+4 -1
View File
@@ -242,7 +242,10 @@ the clause:
else:
_render.mjr_readPixels(out, None, self._rect, self._mjr_context)
out[:] = np.flipud(out)
if self._gl_context:
# If using EGL, OSMesa, or GLFW, the output image is flipped vertically.
# No flip is needed for Filament.
out[:] = np.flipud(out)
return out