internal: fix warnings
This commit is contained in:
parent
0be6b03ee9
commit
398e861b55
5 changed files with 6 additions and 7 deletions
|
|
@ -404,7 +404,7 @@ bool CToplevelExportProtocolManager::copyFrameShm(SScreencopyFrame* frame, times
|
|||
}
|
||||
|
||||
// copy pixels
|
||||
const auto PFORMAT = get_gles2_format_from_drm(format);
|
||||
const auto PFORMAT = gles2FromDRM(format);
|
||||
if (!PFORMAT) {
|
||||
Debug::log(ERR, "[toplevel_export] Cannot read pixels, unsupported format {:x}", (uintptr_t)PFORMAT);
|
||||
g_pHyprOpenGL->end();
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ static const struct wlr_gles2_pixel_format formats[] = {
|
|||
#endif
|
||||
};
|
||||
|
||||
static const struct wlr_gles2_pixel_format* get_gles2_format_from_drm(uint32_t fmt) {
|
||||
inline const struct wlr_gles2_pixel_format* gles2FromDRM(uint32_t fmt) {
|
||||
for (size_t i = 0; i < sizeof(formats) / sizeof(*formats); ++i) {
|
||||
if (formats[i].drm_format == fmt) {
|
||||
return &formats[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue