mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Don't copy unpopulated EGLAttribs
This commit is contained in:
1 parent
0c4f7aefb6
commit
372887b8a2
1 file changed
+1
-1
@@ -240,7 +240,7 @@ ssize_t EglImageFactory::exportDRMImages(AVFrame* frame, EGLDisplay dpy, EGLImag
|
|||||||
else {
|
else {
|
||||||
// Cast the EGLAttrib array elements to EGLint for the KHR extension
|
// Cast the EGLAttrib array elements to EGLint for the KHR extension
|
||||||
EGLint intAttribs[MAX_ATTRIB_COUNT];
|
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];
|
intAttribs[i] = (EGLint)attribs[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user