mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
linker: Fix assertion and cross-version checks for version 100.
Fixes an assert (min_version >= 110) which was no longer correct, and also prohibits linking ES2 shaders with non-ES2 shaders. I'm not positive this is correct, but the specification doesn't seem to say.
This commit is contained in:
parent
116dc670e9
commit
5a81d057db
1 changed files with 3 additions and 2 deletions
|
|
@ -1402,9 +1402,10 @@ link_shaders(GLcontext *ctx, struct gl_shader_program *prog)
|
|||
* match shading language versions. With GLSL 1.30 and later, the versions
|
||||
* of all shaders must match.
|
||||
*/
|
||||
assert(min_version >= 110);
|
||||
assert(min_version >= 100);
|
||||
assert(max_version <= 130);
|
||||
if ((max_version >= 130) && (min_version != max_version)) {
|
||||
if ((max_version >= 130 || min_version == 100)
|
||||
&& min_version != max_version) {
|
||||
linker_error_printf(prog, "all shaders must use same shading "
|
||||
"language version\n");
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue