if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
throw tcu::NotSupportedError("glGetSamplerParameterIiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint sampler = 0x1234;
- GLint borderColor = 0x1234;
+ GLuint sampler = 0x1234;
+ GLint borderColor[] = { 0x1234, 0x4123, 0x3412, 0x2341 };
ctx.beginSection("GL_INVALID_OPERATION is generated if sampler is not the name of a sampler object returned from a previous call to ctx.glGenSamplers.");
- ctx.glGetSamplerParameterIiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor);
+ ctx.glGetSamplerParameterIiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor[0]);
ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
ctx.glGenSamplers(1, &sampler);
ctx.beginSection("GL_INVALID_ENUM is generated if pname is not an accepted value.");
- ctx.glGetSamplerParameterIiv(sampler, -1, &borderColor);
+ ctx.glGetSamplerParameterIiv(sampler, -1, &borderColor[0]);
ctx.expectError(GL_INVALID_ENUM);
ctx.endSection();
if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
throw tcu::NotSupportedError("glGetSamplerParameterIuiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint sampler = 0x1234;
- GLuint borderColor = 0x1234;
+ GLuint sampler = 0x1234;
+ GLuint borderColor[] = { 0x1234, 0x4123, 0x3412, 0x2341 };
ctx.beginSection("GL_INVALID_OPERATION is generated if sampler is not the name of a sampler object returned from a previous call to ctx.glGenSamplers.");
- ctx.glGetSamplerParameterIuiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor);
+ ctx.glGetSamplerParameterIuiv(sampler, GL_TEXTURE_BORDER_COLOR, &borderColor[0]);
ctx.expectError(GL_INVALID_OPERATION);
ctx.endSection();
ctx.glGenSamplers(1, &sampler);
ctx.beginSection("GL_INVALID_ENUM is generated if pname is not an accepted value.");
- ctx.glGetSamplerParameterIuiv(sampler, -1, &borderColor);
+ ctx.glGetSamplerParameterIuiv(sampler, -1, &borderColor[0]);
ctx.expectError(GL_INVALID_ENUM);
ctx.endSection();
void texparameteriv (NegativeTestContext& ctx)
{
- GLint params[1] = {GL_LINEAR};
+ GLint params[4] = { GL_LINEAR, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM };
GLuint texture = 0x1234;
ctx.glGenTextures(1, &texture);
void texparameterfv (NegativeTestContext& ctx)
{
- GLfloat params[1] = {GL_LINEAR};
+ GLfloat params[4] = { GL_LINEAR, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM };
GLuint texture = 0x1234;
ctx.glGenTextures(1, &texture);
ctx.glBindTexture(GL_TEXTURE_2D, texture);
if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
throw tcu::NotSupportedError("glTexParameterIiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX };
+ GLint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX, GL_INVALID_ENUM, GL_INVALID_ENUM };
ctx.beginSection("GL_INVALID_ENUM is generated if target is not a valid target.");
ctx.glTexParameterIiv(0, GL_DEPTH_STENCIL_TEXTURE_MODE, textureMode);
ctx.expectError(GL_INVALID_ENUM);
if (!contextSupports(ctx.getRenderContext().getType(), glu::ApiType::es(3, 2)))
throw tcu::NotSupportedError("glTexParameterIuiv is not supported.", DE_NULL, __FILE__, __LINE__);
- GLuint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX };
+ GLuint textureMode[] = { GL_DEPTH_COMPONENT, GL_STENCIL_INDEX, GL_INVALID_ENUM, GL_INVALID_ENUM };
ctx.beginSection("GL_INVALID_ENUM is generated if target is not a valid target.");
ctx.glTexParameterIuiv(0, GL_DEPTH_STENCIL_TEXTURE_MODE, textureMode);
ctx.expectError(GL_INVALID_ENUM);