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

Opengl wildcard imports + mac fix (@konradbreitsprecher) #2295

Merged
merged 4 commits into from
Oct 5, 2018

Conversation

KaiSzuttor
Copy link
Member

@KaiSzuttor KaiSzuttor commented Oct 5, 2018

  • speeds up importing the visualization module by approx a factor of 10

@codecov
Copy link

codecov bot commented Oct 5, 2018

Codecov Report

Merging #2295 into python will increase coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #2295    +/-   ##
=======================================
+ Coverage      71%     71%   +<1%     
=======================================
  Files         380     380            
  Lines       18938   18938            
=======================================
+ Hits        13586   13588     +2     
+ Misses       5352    5350     -2
Impacted Files Coverage Δ
src/core/communication.cpp 77% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfd792c...e3dbd51. Read the comment docs.

@KaiSzuttor KaiSzuttor changed the title Opengl wildcard imports + mac fix (@konrad) Opengl wildcard imports + mac fix (@konradbreitsprecher) Oct 5, 2018
@fweik fweik merged commit 76aefca into espressomd:python Oct 5, 2018
@RudolfWeeber RudolfWeeber added this to the Espresso 4.0.1 milestone Oct 15, 2018
RudolfWeeber pushed a commit to RudolfWeeber/espresso that referenced this pull request Oct 15, 2018
bors bot added a commit that referenced this pull request Jun 26, 2019
2945: OpenGL.GL missing before GL_DEPTH_ATTACHEMENT r=KaiSzuttor a=Raketenjoint

Fixes #2295
Crash when making screenshots with module `espressomd.visualization_opengl`:
```
Traceback (most recent call last):
  File "EOF.py", line 68, in <module>
    visualizer.screenshot()
  File "visualization_opengl.pyx", line 522, in espressomd.visualization_opengl.openGLLive.screenshot
NameError: name 'GL_DEPTH_ATTACHMENT' is not defined
```
Description of changes:
 - Added `OpenGL.GL.` in front of `GL_DEPTH_ATTACHEMENT`

PR Checklist
------------
 - [x] Tests: made Screenshots
   - [ ] Interface
   - [ ] Core 
 - [ ] Docs?


Co-authored-by: Tim Meiler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants