aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2021-01-02 11:28:46 +0100
committerRSDuck <rsduck@users.noreply.github.com>2021-01-02 11:28:46 +0100
commite2c61b28e037a7283e4c7278a30ec06f25d6e948 (patch)
tree9557c76b8a29b87711c9e63e9cbbbc20c184d456 /src/frontend/qt_sdl
parent18fe5c67592b560236b7f0ed9663826293648626 (diff)
fix mac/clang build
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index d7821fa..dccc7f1 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -909,7 +909,8 @@ void ScreenPanelGL::initializeGL()
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, paddedHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
// fill the padding
- u8 zeroData[256*4*4] = {0};
+ u8 zeroData[256*4*4];
+ memset(zeroData, 0, sizeof(zeroData));
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 192, 256, 2, GL_RGBA, GL_UNSIGNED_BYTE, zeroData);
OSD::Init(this);