Internal change.
PiperOrigin-RevId: 798190254 Change-Id: Ie3a3b6e074511991cc6ccb35f2c26c6d9ae7ccd8
This commit is contained in:
committed by
Copybara-Service
parent
debbd7c916
commit
42d8454555
@@ -242,7 +242,10 @@ the clause:
|
|||||||
else:
|
else:
|
||||||
_render.mjr_readPixels(out, None, self._rect, self._mjr_context)
|
_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
|
return out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user