Don't copy unpopulated EGLAttribs

This commit is contained in:
Cameron Gutman committed 2026-10-24 18:49:46 -05:00
1 parent 0c4f7aefb6
commit 372887b8a2
1 file changed
+1 -1
@@ -240,7 +240,7 @@ ssize_t EglImageFactory::exportDRMImages(AVFrame* frame, EGLDisplay dpy, EGLImag
else {
// Cast the EGLAttrib array elements to EGLint for the KHR extension
EGLint intAttribs[MAX_ATTRIB_COUNT];
for (int i = 0; i < MAX_ATTRIB_COUNT; i++) {
for (int i = 0; i < attribIndex; i++) {
intAttribs[i] = (EGLint)attribs[i];
}