We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdabf83 commit e5f0dbfCopy full SHA for e5f0dbf
obs-browser-source.cpp
@@ -633,7 +633,14 @@ void BrowserSource::Render()
633
634
if (texture) {
635
#ifdef __APPLE__
636
- gs_effect_t *effect = obs_get_base_effect((hwaccel) ? OBS_EFFECT_DEFAULT_RECT : OBS_EFFECT_DEFAULT);
+ int type = gs_get_device_type();
637
+ gs_effect_t *effect;
638
+
639
+ if (type == GS_DEVICE_OPENGL) {
640
+ effect = obs_get_base_effect((hwaccel) ? OBS_EFFECT_DEFAULT_RECT : OBS_EFFECT_DEFAULT);
641
+ } else {
642
+ effect = obs_get_base_effect(OBS_EFFECT_DEFAULT);
643
+ }
644
#else
645
gs_effect_t *effect = obs_get_base_effect(OBS_EFFECT_DEFAULT);
646
#endif
0 commit comments