зеркало из https://github.com/mozilla/gecko-dev.git
Bug 936738 - 'uniform{2,3,4}i' should not check for valid sampler texUnit values. r=bjacob
This commit is contained in:
Родитель
4a637bff20
Коммит
7d0adeab24
|
@ -2716,6 +2716,7 @@ WebGLContext::Uniform1i(WebGLUniformLocation *location_object, GLint a1)
|
|||
if (!ValidateUniformSetter("Uniform1i", location_object, location))
|
||||
return;
|
||||
|
||||
// Only uniform1i can take sampler settings.
|
||||
if (!ValidateSamplerUniformSetter("Uniform1i", location_object, a1))
|
||||
return;
|
||||
|
||||
|
@ -2731,12 +2732,6 @@ WebGLContext::Uniform2i(WebGLUniformLocation *location_object, GLint a1,
|
|||
if (!ValidateUniformSetter("Uniform2i", location_object, location))
|
||||
return;
|
||||
|
||||
if (!ValidateSamplerUniformSetter("Uniform2i", location_object, a1) ||
|
||||
!ValidateSamplerUniformSetter("Uniform2i", location_object, a2))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MakeContextCurrent();
|
||||
gl->fUniform2i(location, a1, a2);
|
||||
}
|
||||
|
@ -2749,13 +2744,6 @@ WebGLContext::Uniform3i(WebGLUniformLocation *location_object, GLint a1,
|
|||
if (!ValidateUniformSetter("Uniform3i", location_object, location))
|
||||
return;
|
||||
|
||||
if (!ValidateSamplerUniformSetter("Uniform3i", location_object, a1) ||
|
||||
!ValidateSamplerUniformSetter("Uniform3i", location_object, a2) ||
|
||||
!ValidateSamplerUniformSetter("Uniform3i", location_object, a3))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MakeContextCurrent();
|
||||
gl->fUniform3i(location, a1, a2, a3);
|
||||
}
|
||||
|
@ -2768,14 +2756,6 @@ WebGLContext::Uniform4i(WebGLUniformLocation *location_object, GLint a1,
|
|||
if (!ValidateUniformSetter("Uniform4i", location_object, location))
|
||||
return;
|
||||
|
||||
if (!ValidateSamplerUniformSetter("Uniform4i", location_object, a1) ||
|
||||
!ValidateSamplerUniformSetter("Uniform4i", location_object, a2) ||
|
||||
!ValidateSamplerUniformSetter("Uniform4i", location_object, a3) ||
|
||||
!ValidateSamplerUniformSetter("Uniform4i", location_object, a4))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MakeContextCurrent();
|
||||
gl->fUniform4i(location, a1, a2, a3, a4);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче