X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fmixer%2Fgpu%2Fogl_device.cpp;h=ba7db7ea09cddd89d066145584038999c299057e;hb=116e09a218cf056e4de868454b0fe26dc4db1413;hp=d74d5fd9649b77cd534b9164ad1edc9311d8f026;hpb=a8e71e9b2452413398ac10f0b6e2dea41cecdec5;p=casparcg diff --git a/core/mixer/gpu/ogl_device.cpp b/core/mixer/gpu/ogl_device.cpp index d74d5fd96..ba7db7ea0 100644 --- a/core/mixer/gpu/ogl_device.cpp +++ b/core/mixer/gpu/ogl_device.cpp @@ -336,16 +336,21 @@ void ogl_device::use(shader& shader) } } -void ogl_device::blend_func_separate(int c1, int c2, int a1, int a2) +void ogl_device::blend_func(int c1, int c2, int a1, int a2) { std::array func = {c1, c2, a1, a2}; if(blend_func_ != func) { blend_func_ = func; - glBlendFuncSeparate(c1, c2, a1, a2); + GL(glBlendFuncSeparate(c1, c2, a1, a2)); } } +void ogl_device::blend_func(int c1, int c2) +{ + blend_func(c1, c2, c1, c2); +} + }}