From 8ed354f7fb32b064b5f082adc127011cca078077 Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Thu, 20 Jun 2024 23:38:43 +0100 Subject: Use OpenGL ES3 for GL_REPEAT Specifying a larger source rectangle than the texture only works if GL_REPEAT does, and GL_REPEAT only works on OpenGL ES3 Raylib must be built with GRAPHICS=GRAPHICS_API_OPENGL_ES3 for this to work on web. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aec7883..e673e5f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ desktop: zig cc -target native main.c -o game -lGL -lm -lpthread -ldl -lrt -lX11 -Iraylib/src -Iraygui/src lib/tux/libraylib.a && ./game web: - emcc -Os -Wall main.c -o game -Iraylib/src -Iraygui/src lib/web/libraylib.a -o output/index.html -s USE_GLFW=3 -DPLATFORM_WEB --shell-file raylib/src/minshell.html -s TOTAL_MEMORY=268435456 -s ASYNCIFY --preload-file ./assets + emcc -Os -Wall main.c -o game -Iraylib/src -Iraygui/src lib/web/libraylib.a -o output/index.html -s USE_GLFW=3 -s FULL_ES3 -DPLATFORM_WEB --shell-file raylib/src/minshell.html -s TOTAL_MEMORY=268435456 -s ASYNCIFY --preload-file ./assets -- cgit v1.2.3