Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error linking shader error C5145: must write to gl_Positionc in commit 03 #23

Open
bumagh opened this issue Nov 2, 2023 · 2 comments
Open

Comments

@bumagh
Copy link

bumagh commented Nov 2, 2023

OpenGL Loaded
Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 1050/PCIe/SSE2
Version: 4.6.0 NVIDIA 536.23
Error linking shader. Vertex info

(0) : error C5145: must write to gl_Positionc

@bumagh
Copy link
Author

bumagh commented Nov 2, 2023

my build.bat is below
set render=src\engine\render\render.c src\engine\render\render_init.c src\engine\render\render_util.c set io=src\engine\io\io.c set files=src\glad.c src\main.c src\engine\global.c %render% %io% set libs=E:\env\c_game_engine_env\libs gcc -I E:\env\c_game_engine_env\include %files% -L %libs% -lmingw32 -lSDL2main -lSDL2 -o main.exe -Dmain=SDL_main -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid

@bumagh
Copy link
Author

bumagh commented Nov 14, 2023

I change the vert and frag path to absolute path, then it works !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant