Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b2cb21f

Browse files
authored
[Impeller] libImpeller: Add a warning about OpenGL state being trampled. (#56599)
1 parent a304e2e commit b2cb21f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

impeller/toolkit/interop/impeller.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,14 @@ void ImpellerSurfaceRelease(ImpellerSurface IMPELLER_NULLABLE surface);
689689
/// @brief Draw a display list onto the surface. The same display list can
690690
/// be drawn multiple times to different surfaces.
691691
///
692+
/// @warning In the OpenGL backend, Impeller will not make an effort to
693+
/// preserve the OpenGL state that is current in the context.
694+
/// Embedders that perform additional OpenGL operations in the
695+
/// context should expect the reset state after control transitions
696+
/// back to them. Key state to watch out for would be the viewports,
697+
/// stencil rects, test toggles, resource (texture, framebuffer,
698+
/// buffer) bindings, etc...
699+
///
692700
/// @param[in] surface The surface to draw the display list to.
693701
/// @param[in] display_list The display list to draw onto the surface.
694702
///

0 commit comments

Comments
 (0)