I am working on an opengl game for Windows. Recently I made an open beta and got some feedback (and crash reports) on it.
My biggest problem is compiling shaders. Previously I was not specifiying any glsl version (not using version pragma) and it was causing problems when I do non-standard things. I have a very forgiving compiler for glsl but as far as I can see most people don’t
Then I picked #version 450, fixed all errors and sent it to beta. The first I crash got was
Version number not supported by GL2
Then I reduced my version 150 and it worked fine for that reporter. However after that I received this one from another person:
version ‘150’ is not supported
I reduced it to 110 now. But I don’t know if what I am doing is correct or sane. 150 is already 8 years old, and now I am pushing it to 110.
Should I do that? Is there any problems with using lower versions of glsl? I am not doing anything fancy in my shaders so I don’t think I need the features of newer versions.
Or maybe I shouldn’t use version pragma at all. I can enable version 110 while developing, compile my shaders for version 110, and then comment out version pragmas and hope that whatever version my players has enough for it.
[QUOTE=shultays;1288468]
Hmm, my opengl version is 3.2 and I was using #version 150 but I still received this error:
ERROR: 0:1: ‘’ : version ‘150’ is not supported[/QUOTE]
From what you said in your first topic, we can suppose that this error comes from a particular user, not yourself.
You should check the OpenGL version as soon as your context is created. Just report an error and close your program if the current OpenGL version is less than 3.2. People who don’t have the required hardware/drivers will not be able to launch your game, and this is the best that you can do.
[QUOTE=Silence;1288474]From what you said in your first topic, we can suppose that this error comes from a particular user, not yourself.
You should check the OpenGL version as soon as your context is created. Just report an error and close your program if the current OpenGL version is less than 3.2. People who don’t have the required hardware/drivers will not be able to launch your game, and this is the best that you can do.[/QUOTE]