[BUGFIX] Use created rendering context for rendering stack

This fixes a bug introduced by f8d0d0b