Skip to content

Commit 82092ce

Browse files
tytan652RytoEX
authored andcommitted
Require extra info for Linux hardware accel
1 parent 033a23b commit 82092ce

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

browser-client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,9 @@ void BrowserClient::OnAcceleratedPaint(CefRefPtr<CefBrowser>, PaintElementType t
450450
#elif defined(_WIN32)
451451
bs->texture = gs_texture_open_shared((uint32_t)(uintptr_t)shared_handle);
452452
#else
453-
bs->texture = gs_texture_create_from_dmabuf(bs->width, bs->height, format.drm_format, format.gs_format,
454-
info.plane_count, fds, strides, offsets,
455-
modifier != DRM_FORMAT_MOD_INVALID ? modifiers : NULL);
453+
bs->texture = gs_texture_create_from_dmabuf(info.extra.coded_size.width, info.extra.coded_size.height,
454+
format.drm_format, format.gs_format, info.plane_count, fds, strides,
455+
offsets, modifier != DRM_FORMAT_MOD_INVALID ? modifiers : NULL);
456456
#endif
457457
UpdateExtraTexture();
458458
obs_leave_graphics();

cef-headers.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
#define ENABLE_WASHIDDEN 0
5151
#endif
5252

53-
#if !defined(_WIN32) && !defined(__APPLE__) && CHROME_VERSION_BUILD > 6337
53+
#if !defined(_WIN32) && !defined(__APPLE__) && \
54+
(CHROME_VERSION_BUILD >= 6943 || (CHROME_VERSION_BUILD > 6337 && defined(CEF_OSR_EXTRA_INFO)))
5455
#define ENABLE_BROWSER_SHARED_TEXTURE
5556
#endif
5657

0 commit comments

Comments
 (0)