Skip to content

Commit

Permalink
framebuffer: ask for 2101010 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Feb 21, 2024
1 parent 1b57d52 commit 3f8b6b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/renderer/Framebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ static uint32_t glFormatToType(uint32_t gl) {
return gl != GL_RGBA ? GL_UNSIGNED_INT_2_10_10_10_REV : GL_UNSIGNED_BYTE;
}

bool CFramebuffer::alloc(int w, int h, uint32_t drmFormat) {
bool CFramebuffer::alloc(int w, int h) {
bool firstAlloc = false;

uint32_t glFormat = drmFormatToGL(drmFormat);
uint32_t glFormat = drmFormatToGL(DRM_FORMAT_XRGB2101010); // TODO: revise only 10b when I find a way to figure out without sc whether display is 10b
uint32_t glType = glFormatToType(glFormat);

if (m_iFb == (uint32_t)-1) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/Framebuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CFramebuffer {
public:
~CFramebuffer();

bool alloc(int w, int h, uint32_t format = GL_RGBA);
bool alloc(int w, int h);
void addStencil();
void bind() const;
void release();
Expand Down

0 comments on commit 3f8b6b5

Please sign in to comment.