27 lines
883 B
C++
27 lines
883 B
C++
--- src/wayland/buffer/dmabuf.cpp.orig 2026-08-21 02:28:55 UTC
|
|
+++ src/wayland/buffer/dmabuf.cpp
|
|
@@ -952,9 +952,9 @@ WlBufferQSGTexture* WlDmaBuffer::createQsgTextureGl(QQ
|
|
|
|
// clang-format off
|
|
auto attribs = std::vector<EGLAttrib> {
|
|
- EGL_WIDTH, this->width,
|
|
- EGL_HEIGHT, this->height,
|
|
- EGL_LINUX_DRM_FOURCC_EXT, this->format,
|
|
+ EGL_WIDTH, static_cast<int>(this->width),
|
|
+ EGL_HEIGHT, static_cast<int>(this->height),
|
|
+ EGL_LINUX_DRM_FOURCC_EXT, static_cast<int>(this->format),
|
|
};
|
|
// clang-format on
|
|
|
|
@@ -970,8 +970,8 @@ WlBufferQSGTexture* WlDmaBuffer::createQsgTextureGl(QQ
|
|
// clang-format off
|
|
attribs.insert(attribs.end(), {
|
|
names.fd, plane.fd,
|
|
- names.offset, plane.offset,
|
|
- names.pitch, plane.stride,
|
|
+ names.offset, static_cast<int>(plane.offset),
|
|
+ names.pitch, static_cast<int>(plane.stride),
|
|
});
|
|
// clang-format on
|
|
|