···9797}
98989999100100-// Loads a shader and prepends version/compatibility info before compiling it
100100+// Loads a shader and prepends version/compatibility info before compiling it.
101101+// Normally, you can just use GPU_LoadShader() for shader source files or GPU_CompileShader() for strings.
102102+// However, some hardware (certain ATI/AMD cards) does not let you put non-#version preprocessing at the top of the file.
103103+// Therefore, I need to prepend the version info here so I can support both GLSL and GLSLES with one shader file.
101104Uint32 load_shader(GPU_ShaderEnum shader_type, const char* filename)
102105{
103106 SDL_RWops* rwops;