Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

It seems to get a bit further now, but still crashing.

Log found for 'quad':
0:4(12): warning: extension `GL_EXT_shader_texture_lod' unsupported in vertex shader
0:5(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader
Log found for 'quad':
0:4(12): warning: extension `GL_EXT_shader_texture_lod' unsupported in fragment shader
0:5(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader
Log found for 'model':
0:4(12): warning: extension `GL_EXT_shader_texture_lod' unsupported in vertex shader
0:5(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader
loading resauces/models/door.obj
Log found for 'depth':
0:4(12): warning: extension `GL_EXT_shader_texture_lod' unsupported in fragment shader
0:5(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader
GL_INVALID_OPERATION - utils/shader.c:447

On some runs I'm still getting "#extension directive is not allowed in the middle of a shader" instead of the GL_INVALID_OPERATION error as well.

Can you create a pastebin with glinfo?

https://pastebin.com/raw/La0GJx2A

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?