Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins after the first one sometimes don't draw #317

Closed
pjreed opened this issue Feb 4, 2016 · 0 comments
Closed

Plugins after the first one sometimes don't draw #317

pjreed opened this issue Feb 4, 2016 · 0 comments
Assignees
Labels

Comments

@pjreed
Copy link
Contributor

pjreed commented Feb 4, 2016

PR #306 introduced a bug that caused the OpenGL viewport to become un-transformed properly after the first plugin was drawn, which could make subsequent plugins not render properly.

@pjreed pjreed self-assigned this Feb 4, 2016
pjreed added a commit to pjreed/mapviz that referenced this issue Feb 4, 2016
First, the model view matrix needs to be saved and restored around
QPainter operations because Qt clears several GL variables.  Also, the
image plugin needed to explicitly call glMatrixMode(GL_PROJECTION);
it does a few operations on the projection matrix and was just assuming
that was the current matrix mode.  Also, I added a function that plugins
need to override if they want to do QPainter operations; this will
eliminate unnecessary overhead for plugins that do not.
@pjreed pjreed added the bug label Feb 4, 2016
pjreed added a commit to pjreed/mapviz that referenced this issue Feb 4, 2016
First, the model view matrix needs to be saved and restored around
QPainter operations because Qt clears several GL variables.  Also, the
image plugin needed to explicitly call glMatrixMode(GL_PROJECTION);
it does a few operations on the projection matrix and was just assuming
that was the current matrix mode.  Also, I added a function that plugins
need to override if they want to do QPainter operations; this will
eliminate unnecessary overhead for plugins that do not.
malban pushed a commit that referenced this issue Feb 5, 2016
Fixing #317; weird plugin transformation glitches
pjreed added a commit that referenced this issue Feb 5, 2016
@pjreed pjreed closed this as completed Feb 5, 2016
malban pushed a commit to malban/mapviz that referenced this issue Jul 6, 2016
malban pushed a commit to malban/mapviz that referenced this issue Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant