Linux Port (GTK/GTK2): Fix compiling in glx_3Demu.cpp.

- Also fix a typo in egl_3Demu.cpp
This commit is contained in:
rogerman 2024-08-01 23:02:58 -07:00
parent 15f5b169cc
commit 4427b863ad
2 changed files with 7 additions and 7 deletions
desmume/src/frontend/posix/shared

View File

@ -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);
}

View File

@ -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;