Skip to content

Commit 81ad3fd

Browse files
committed
Fixed using OpenGL 4.1 functions for OpenGL 4.0 and 3.2 samples
1 parent 38558ae commit 81ad3fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/gl-320-fbo-multisample-integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class gl_320_fbo_multisample_integer : public test
383383
// Render the colorbuffer from the multisampled framebuffer
384384
renderFB(TextureName[texture::COLORBUFFER]);
385385

386-
return true;
386+
return this->checkError("render");;
387387
}
388388
};
389389

tests/gl-320-primitive-line-msaa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class gl_320_primitive_line_msaa : public test
323323
glBindVertexArray(VertexArrayName[program::TEXTURE]);
324324
glBindBufferBase(GL_UNIFORM_BUFFER, semantic::uniform::TRANSFORM0, BufferName[buffer::TRANSFORM]);
325325

326-
glDrawArraysInstancedBaseInstance(GL_LINE_LOOP, 0, this->VertexCount, 1, 0);
326+
glDrawArraysInstanced(GL_LINE_LOOP, 0, this->VertexCount, 1);
327327

328328
glBindFramebuffer(GL_READ_FRAMEBUFFER, FramebufferName[texture::RENDERBUFFER]);
329329
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, FramebufferName[texture::COLORBUFFER]);

tests/gl-400-texture-cube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class gl_400_texture_cube : public test
253253
glBindBufferBase(GL_UNIFORM_BUFFER, semantic::uniform::TRANSFORM0, BufferName[buffer::TRANSFORM]);
254254
glBindVertexArray(VertexArrayName);
255255

256-
glDrawArraysInstancedBaseInstance(GL_TRIANGLES, 0, VertexCount, 1, 0);
256+
glDrawArraysInstanced(GL_TRIANGLES, 0, VertexCount, 1);
257257

258258
return true;
259259
}

0 commit comments

Comments
 (0)