mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 18:05:51 +00:00
screen capture [Linux]: use Xlib backend for Intel cards
This commit is contained in:
@@ -202,6 +202,12 @@ static void initialize() {
|
||||
glViewport(0, 0, state->tile->width, state->tile->height);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
const char *vendor = glGetString(GL_VENDOR);
|
||||
if(strcmp(vendor, "Tungsten Graphics, Inc") == 0) {
|
||||
fprintf(stderr, "[screen capture] Intel graphic card detected, switching to Xlib screen capture.\n");
|
||||
s->nogl = true;
|
||||
}
|
||||
|
||||
#else
|
||||
s->display = CGMainDisplayID();
|
||||
CGImageRef image = CGDisplayCreateImage(s->display);
|
||||
|
||||
Reference in New Issue
Block a user