-
Notifications
You must be signed in to change notification settings - Fork 149
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
Labels
Comments
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
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
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
Conflicts: .travis.yml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: