SDL_GL_GetDrawableSize
seems brokenSDL_GL_GetDrawableSize
still reports super high resolution.glViewport
, SDL_GL_GetDrawableSize
will report low resolution again.SDL_GL_GetDrawableSize
seems broken SDL_GetWindowSize
or SDL_GL_GetDrawableSize
c0d6ce6
Add GLES support - Jupeyy
f5f05f3
make screenshot work - Jupeyy
ecc5a7a
Make GLES3 only makros - Jupeyy
e05abba
Remove GL includes from headers - Jupeyy
b8f96ce
Allow GLES3 coexists with OpenGL on Linux - Jupeyy
6f01de1
Fix modern GL graphic settings for the multi backend - Jupeyy
8be6f17
Make video's pixel read GLES conform - Jupeyy
97ab2c6
Merge #3798 - bors[bot]SDL_GL_GetDrawableSize
reports the right size after glViewport is called apparentlySCommand_Update_Viewport
SDL_GL_GetDrawableSize
reports the correct size after we resizeSDL_SetWindowSize
before SDL_GL_GetDrawableSize
during CGraphicsBackend_SDL_OpenGL::Init
which didn't help eitherSDL_GL_GetDrawableSize
to call glViewport
SDL_GL_GetDrawableSize
will be correct after the window has appeared in the OS?SDL_GL_GetDrawableSize
gives us the wrong size during initialization with HIDPI flag not set.SDL_WINDOWEVENT_SIZE_CHANGED
when it does populate it thoughSDL_WINDOWEVENT_SIZE_CHANGED
didn't trigger the event after the window is up.SDL_WINDOWEVENT_SIZE_CHANGED
is not triggering for me without resizing.-DPREFER_BUNDLED_LIBS=OFF
it will link to the damn framework there-- Found SDL2: /usr/local/lib/libSDL2.dylib
-- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include (found version "3.32.3")
-- Checking for module 'sqlite3'
-- Found sqlite3, version 3.28.0
-- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
sed -i "" 's/10\.15/11.0/g' CMakeCache.txt
here is the only fix I could come up withcat yourconfig | grep "^gfx_"
?gfx_screen_width 1280
gfx_screen_height 800
gfx_borderless 0
gfx_highdpi 0
gfx_vsync 1
gfx_resizable 1
gfx_opengl_major 2
gfx_3d_texture_analysis_done 1
ls -la /Library/Developer/CommandLineTools/SDKs/
gfx_screen_width
and heightdefaults write -g NSLogUnusualAppConfig -bool YES
2021-05-06 16:40:49.478 DDNet[19052:1029624] NSOpenGLContextSuppressThreadAssertions=YES
in the log I'm fairly certain you have some alien macOSotool -L DDNet
? /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2022.44.149)
[NSOpenGL_Context setView:]
ls -la /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
?lldb ./DDNet
run
, wait a bit ^C
to interruptimage list
[ 15] 10AFBC3A-E9A4-3E62-B9F5-97DF579B7A84 0x00007fff22e79000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
sudo ls -la
insteadNew in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)