Skip to content

Commit

Permalink
update linking
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jan 13, 2025
1 parent 4645098 commit 88ee203
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ else
endif

$(EXAMPLE_OUTPUTS): %: %.c RGFW.h
$(CC) $(CFLAGS) $(WARNINGS) -I. $< $(LIBS) $($) -o $@$(EXT)
$(CC) $(CFLAGS) $(WARNINGS) -I. $< $(LINK_GL1) $(LIBS) $($) -o $@$(EXT)

debug: all
@for exe in $(EXAMPLE_OUTPUTS); do \
Expand Down
7 changes: 6 additions & 1 deletion RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -2314,8 +2314,13 @@ void RGFW_createOpenGLContext(RGFW_window* win) {
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType) win->src.hdc);
#elif defined(RGFW_MACOS)
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType)0);
#elif defined(RGFW_WAYLAND)
if (RGFW_useWaylandBool)
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType) win->src.wl_display);
else
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType) win->src.display);
#else
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType) win->src.wl_display);
win->src.EGL_display = eglGetDisplay((EGLNativeDisplayType) win->src.display);
#endif

EGLint major, minor;
Expand Down

0 comments on commit 88ee203

Please sign in to comment.