patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

es 3.0 not working, extensions not working #335

Open willstall opened 1 year ago

willstall commented 1 year ago

I seem to be having an issue getting any file to work with #version 300 es, getting an unsupported error.

[ ERROR DUMP ]

OpenGL ES Vendor: Apple Renderer: Apple M1 Version: 2.1 Metal - 76.3 GLSL version: 1.20 GL_MAX_TEXTURE_SIZE = 16384 // Reload 2D shaders Errors while compiling fragment shader: ERROR: 0:1: '' : version '300' is not supported ERROR: 0:1: '' : syntax error: #version

Also, trying to fix using the default version and I also cannot get extensions to work. Example:

extension GL_OES_standard_derivatives : enable

extension GL_EXT_shader_texture_lod : enable

The 3.0 example files is also not currently working from what I can tell. My version number is coming up as 1.6.9 installed via home-brew .

willstall commented 9 months ago

Tried again to do some things yesterday and any call to #version seems to break on osx m1

willstall commented 9 months ago

I did a quick search today for GLFW support for #version 300 es and it might actually be an m1,m2 openGL support issue? One article I read said, "You CAN get it to work, but only running core profile with GLSL <= version 410 core."