Skip to content

Commit

Permalink
no need for vector
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Jan 21, 2025
1 parent e933895 commit b9fb95f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renderer/Screencopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
#include "../core/Egl.hpp"
#include "../config/ConfigManager.hpp"
#include "wlr-screencopy-unstable-v1.hpp"
#include <cstring>
#include <array>
#include <EGL/eglext.h>
#include <cstdint>
#include <gbm.h>
#include <unistd.h>
#include <sys/mman.h>
#include <cstring>
#include <libdrm/drm_fourcc.h>
#include <GLES3/gl32.h>
#include <GLES3/gl3ext.h>
Expand Down Expand Up @@ -224,7 +225,7 @@ bool CSCDMAFrame::onBufferDone() {
}

bool CSCDMAFrame::onBufferReady(SPreloadedAsset& asset) {
std::vector<EGLAttrib> attribs = {
std::array<EGLAttrib, 13> attribs = {
EGL_WIDTH,
m_w,
EGL_HEIGHT,
Expand Down

0 comments on commit b9fb95f

Please sign in to comment.