Skip to content

Commit

Permalink
fix glBlendFunc under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
chongyangma committed Jan 26, 2017
1 parent 887676d commit 73d4a1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ before_build:
- cmd: cd C:\projects\ElementSyn
- cmd: md build
- cmd: cd build
# We generate project files for Visual Studio 12 because the boost binaries installed on the test server are for Visual Studio 12.
- cmd: if "%platform%"=="Win32" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
- cmd: if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64
- cmd: cmake -G "%CMAKE_GENERATOR_NAME%" -DCMAKE_BUILD_TYPE=%configuration% ../
Expand Down
6 changes: 3 additions & 3 deletions src/ParticleSystem/ParticleSystemMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ void Initialize(const char* config_file_path)
glEnable(GL_POLYGON_SMOOTH);
glEnable(GL_POLYGON_SMOOTH_HINT);
glEnable(GL_BLEND);
#ifdef WIN32
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#else
#ifdef __APPLE__
glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA);
#else
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#endif
LoadCameraAndArcBall();
}
Expand Down
6 changes: 3 additions & 3 deletions src/TreeBranches/TreeBranchesMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ void Initialize(const char* config_file_path)
glEnable(GL_POLYGON_SMOOTH);
glEnable(GL_POLYGON_SMOOTH_HINT);
glEnable(GL_BLEND);
#ifdef WIN32
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#else
#ifdef __APPLE__
glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_DST_ALPHA);
#else
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#endif
LoadCameraAndArcBall();
}
Expand Down

0 comments on commit 73d4a1b

Please sign in to comment.