From cfa4952f7cf424157eed60e30291336922776d53 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Nov 2015 13:59:33 +0100 Subject: vo_opengl: glBindBufferBase is not part of GL 2.1/GLES 2.0 Commit 27dc834f added it as such. Also remove the check for glUniformBlockBinding() - it's part of an extension, and the check glGetUniformBlockIndex() already checks whether the extension is fully available. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index cd638ccd5e..d69d58f5e3 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2422,7 +2422,7 @@ static void check_gl_features(struct gl_video *p) if (p->opts.prescale == 2) { if (p->opts.nnedi3_opts->upload == NNEDI3_UPLOAD_UBO) { // Check features for uniform buffer objects. - if (!p->gl->GetUniformBlockIndex || !p->gl->UniformBlockBinding) { + if (!p->gl->BindBufferBase || !p->gl->GetUniformBlockIndex) { MP_WARN(p, "Disabling NNEDI3 (OpenGL 3.1 required).\n"); p->opts.prescale = 0; } -- cgit v1.2.3