Skip to content

Commit

Permalink
Linux Port (GTK/GTK2): Fix compiling in glx_3Demu.cpp.
Browse files Browse the repository at this point in the history
- Also fix a typo in egl_3Demu.cpp
  • Loading branch information
rogerman committed Aug 2, 2024
1 parent 15f5b16 commit 4427b86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion desmume/src/frontend/posix/shared/egl_3Demu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ bool egl_framebufferDidResizeCallback(bool isFBOSupported, size_t w, size_t h)
if (pendingSurface != EGL_NO_SURFACE)
{
// Destroy any existing pending surface now since we need it to
// always have the lastest framebuffer size.
// always have the latest framebuffer size.
eglDestroySurface(currDisplay, pendingSurface);
}

Expand Down
12 changes: 6 additions & 6 deletions desmume/src/frontend/posix/shared/glx_3Demu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ static bool __glx_initOpenGL(const int requestedProfile, const int requestedVers
{
// 3.2 Core Profile always uses FBOs, and so no P-Buffers, depth
// buffers, or stencil buffers are needed for this kind of context.
confAttr[10] = 0;
confAttr[11] = 0;
fbConfigAttr[10] = 0;
fbConfigAttr[11] = 0;

confAttr[12] = 0;
confAttr[13] = 0;
fbConfigAttr[12] = 0;
fbConfigAttr[13] = 0;

confAttr[14] = 0;
confAttr[15] = 0;
fbConfigAttr[14] = 0;
fbConfigAttr[15] = 0;
}

int fbConfigCount = 0;
Expand Down

0 comments on commit 4427b86

Please sign in to comment.