OSDN Git Service

Fix out-of-bounds vertex arrays
authorLingfeng Yang <lfy@google.com>
Tue, 13 Dec 2016 00:17:02 +0000 (16:17 -0800)
committerLingfeng Yang <lfy@google.com>
Tue, 13 Dec 2016 00:17:02 +0000 (16:17 -0800)
commit1ae9d739d530de343b845b0e03f996a9d97e6d17
treeb305a46d434949d1279f82adb706442ddac2f73d
parent39481cd192ad866d7253cc393c418b6e40af860f
Fix out-of-bounds vertex arrays

Index range cache got a bogus argument for "offset",
so it was not being invalidated properly.

When it wasn't being invalidated properly, our validation
could issue out-of-bounds errors even when the index buffer
was actually not out of bounds.

Change-Id: I9c59412bb20bd6ea16e25bf83f1e64d5889910e9
system/GLESv2_enc/GL2Encoder.cpp
system/GLESv2_enc/GL2Encoder.h