Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I removed those two extensions, but I'm not sure where I'm using the directive in the middle of a shader, I am now printing the generated shaders. Thanks for the help!

https://pastebin.com/raw/4jUsAfmP

Found it, is it working now?

(2 edits)

Still crashing. It's randomly giving me one of these 3 now:

GL_INVALID_OPERATION - utils/shader.c:447

GL_INVALID_OPERATION - utils/texture.c:814

Log found for 'masked_gbuffer':
0:8(1): error: #extension directive is not allowed in the middle of a shader
masked_gbuffer -> fragment shader!

Damn it, I'm sorry, forgot to update the resources folder

Alright, I'm not getting the #extension directive error anymore, so it's down to those GL_INVALID_OPERATION errors now.

Is it just one GL_INVALID_OPERATION, or is the shader.c error still there?

It's still the two of them, though only one of them shows up every time; GL_INVALID_OPERATION in either utils/shader.c:447 or utils/texture.c:814

The texture one I fixed, but the shader one is hard because I don't know the context, are you familiar with gdb? If it's asking too much, I understand.

Not very well versed in that, I've used it within code::blocks for my own game to see where it crashes and to set breakpoints, but that's it.