Skip to content

Commit

Permalink
Fix assert for NVidia drivers 525.60.11 (#180)
Browse files Browse the repository at this point in the history
With this specific version of NVidia drivers, modifiers cannot be
queried for specific formats, so instead of raising an assertion let's
just ignore the format silently.
  • Loading branch information
neodesys authored Jan 18, 2023
1 parent 9d3c445 commit 2c6a7d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws-egl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void ImplEGL::foreachDmaBufModifier(std::function<void (int format, uint64_t mod
uint64_t modifiers[64];
EGLint numModifiers;
if (!s_eglQueryDmaBufModifiersEXT(m_egl.display, formats[i], 64, modifiers, NULL, &numModifiers))
assert(!"Linux-dmabuf: Failed to query modifiers of a format");
numModifiers = 0;

/* Send DRM_FORMAT_MOD_INVALID token when no modifiers are supported
* for this format.
Expand Down

0 comments on commit 2c6a7d2

Please sign in to comment.