Create unit-test windows hidden from the start while preserving hardware OpenGL rendering. Force double buffering for hidden X11 windows so framebuffer capture reads the rendered back buffer reliably, and keep SDL2/SDL3 behavior consistent. Update unit-test documentation to use direct desktop execution by default, with Xvfb retained for headless environments.

This change might break unit-tests in other platforms, next CI run will let us know.
This commit is contained in:
Martín Lucas Golini
2026-08-22 14:11:11 -03:00
parent 405e84608f
commit 681841e11d
9 changed files with 61 additions and 22 deletions
+3 -3
View File
@@ -4,10 +4,10 @@
#include <eepp/config.hpp>
#include <string>
#define EEPP_MAJOR_VERSION 3
#define EEPP_MINOR_VERSION 1
#define EEPP_MAJOR_VERSION 4
#define EEPP_MINOR_VERSION 0
#define EEPP_PATCH_LEVEL 0
#define EEPP_CODENAME "Khaya"
#define EEPP_CODENAME "Asādhāraṇa"
/** The compiled version of the library */
#define EEPP_VERSION( x ) \
+3
View File
@@ -25,8 +25,11 @@ enum WindowStyle {
Resize = ( 1 << 2 ),
Fullscreen = ( 1 << 3 ),
UseDesktopResolution = ( 1 << 4 ),
Hidden = ( 1 << 5 ),
#if EE_PLATFORM == EE_PLATFORM_IOS || EE_PLATFORM == EE_PLATFORM_ANDROID
Default = Borderless
#elif defined( EE_UNIT_TESTS )
Default = Titlebar | Resize | Hidden
#else
Default = Titlebar | Resize
#endif