Skip to content

Double initialization of render stage #400

@j-o

Description

@j-o

This call order is fine:

m_canvas->setOpenGLContext();
m_canvas->setRenderStage(...);

However, if called the other way around (as a result of my solution to #393), the render stage is initialized twice: once during setOpenGLContext() and once during the first call to render() (without intermediate deinitialization).

Solution ideas:

  • add m_contextInitialized flag to Canvas
  • Stage stores a pointer to the context it has been initialized with that can be checked by the Canvas

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions