From 6ef36c0a1733a04ed38990e7094a5e710ce1164b Mon Sep 17 00:00:00 2001 From: Thomas Anderson <5776225+CrackedPixel@users.noreply.github.com> Date: Thu, 16 Apr 2026 06:01:54 -0500 Subject: [PATCH 1/2] fix examples makefile define (#5767) --- examples/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Makefile b/examples/Makefile index 6b15d22ff..334f59694 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -510,7 +510,7 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_WIN32) # Libraries for Windows desktop compilation LDFLAGS += -L..\src LDLIBS = -lraylib -lgdi32 -lwinmm -lshcore - ifneq ($(GRAPHICS),GRAPHICS_API_OPENGL_11_SOFTWARE) + ifneq ($(GRAPHICS),GRAPHICS_API_OPENGL_SOFTWARE) LDLIBS += -lopengl32 endif endif From be768e27f9a599b1dc6463a1867606a526985ef2 Mon Sep 17 00:00:00 2001 From: Thomas Anderson <5776225+CrackedPixel@users.noreply.github.com> Date: Fri, 17 Apr 2026 10:55:04 -0500 Subject: [PATCH 2/2] fix issue with gettime (#5772) --- src/platforms/rcore_desktop_rgfw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 6b021ce66..fc357e364 100755 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -1131,7 +1131,9 @@ void SwapScreenBuffer(void) // Get elapsed time measure in seconds since InitTimer() double GetTime(void) { - double time = get_time_seconds() - CORE.Time.base; + // CORE.Time.base is nanoseconds as integer + double baseTime = (double)CORE.Time.base / 1e9; + double time = get_time_seconds() - baseTime; return time; } @@ -1654,7 +1656,6 @@ int InitPlatform(void) RGFW_setGlobalHints_OpenGL(hints); platform.window = RGFW_createWindow((CORE.Window.title != 0)? CORE.Window.title : " ", 0, 0, CORE.Window.screen.width, CORE.Window.screen.height, flags | RGFW_windowOpenGL); - CORE.Time.base = get_time_seconds(); #ifndef PLATFORM_WEB_RGFW i32 screenSizeWidth;