Paste P528

Fix for T52680
ArchivedPublic

Authored by Sergey Sharybin (sergey) on Mon, Sep 11, 10:44 AM.
Tags
None
Subscribers
None
1diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
2index f64436aec7b..02d331c1cc3 100644
3--- a/intern/cycles/device/device.cpp
4+++ b/intern/cycles/device/device.cpp
5@@ -107,7 +107,8 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int d
6
7​ if(transparent) {
8​ glEnable(GL_BLEND);
9- glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
10+ glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
11+ GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
12​ }
13
14​ glColor3f(1.0f, 1.0f, 1.0f);
15diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
16index 3b75142ee67..b8d21142c89 100644
17--- a/intern/cycles/device/device_cuda.cpp
18+++ b/intern/cycles/device/device_cuda.cpp
19@@ -1662,7 +1662,8 @@ public:
20
21​ if(transparent) {
22​ glEnable(GL_BLEND);
23- glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
24+ glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
25+ GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
26​ }
27
28​ glColor3f(1.0f, 1.0f, 1.0f);
Sergey Sharybin (sergey) created this object with edit policy "Administrators".