From 69bffb837b9deecf71447f5406a9dc083c708bc7 Mon Sep 17 00:00:00 2001 From: Alexis Hetu Date: Tue, 7 Nov 2017 11:47:53 -0500 Subject: [PATCH] Fixed Vertex Array Objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixed glBindVertexArray. The early return was wrong, binding vertex array 0 is perfectly valid. All related dEQP tests pass. Change-Id: Idd0ae745dc15877afb7c7323aab8253fb71e9017 Reviewed-on: https://swiftshader-review.googlesource.com/13549 Tested-by: Alexis Hétu Reviewed-by: Nicolas Capens --- src/OpenGL/libGLESv2/libGLESv3.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/OpenGL/libGLESv2/libGLESv3.cpp b/src/OpenGL/libGLESv2/libGLESv3.cpp index f995d2db0..a30075380 100644 --- a/src/OpenGL/libGLESv2/libGLESv3.cpp +++ b/src/OpenGL/libGLESv2/libGLESv3.cpp @@ -1647,11 +1647,6 @@ GL_APICALL void GL_APIENTRY glBindVertexArray(GLuint array) { TRACE("(GLuint array = %d)", array); - if(array == 0) - { - return; - } - es2::Context *context = es2::getContext(); if(context) -- 2.11.0