void get_sampler_parameterfv (NegativeTestContext& ctx)
{
- float params;
- GLuint sampler = 0;
+ float params = 0.0f;
+ GLuint sampler = 0;
ctx.glGenSamplers (1, &sampler);
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.");
void get_program_info_log (NegativeTestContext& ctx)
{
- GLuint program = ctx.glCreateProgram();
- GLuint shader = ctx.glCreateShader(GL_VERTEX_SHADER);
- GLsizei length[1];
- char infoLog[1];
+ GLuint program = ctx.glCreateProgram();
+ GLuint shader = ctx.glCreateShader(GL_VERTEX_SHADER);
+ GLsizei length[1] = { 0 };
+ char infoLog[1] = { 'x' };
ctx.beginSection("GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.");
ctx.glGetProgramInfoLog (-1, 1, &length[0], &infoLog[0]);