Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gles/compat: Handle glBindVertexArrayOES and glGenVertexArraysOES
  • Loading branch information
ben-clayton committed Aug 30, 2017
1 parent 75387f7 commit 304f4b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gapis/api/gles/compat.go
Expand Up @@ -323,6 +323,16 @@ func compat(ctx context.Context, device *device.Instance) (transform.Transformer
return
}
}
// Translate to non-OES call.
out.MutateAndWrite(ctx, id, cb.GlBindVertexArray(cmd.Array))
return

case *GlGenVertexArraysOES:
// Translate to non-OES call.
c := cb.GlGenVertexArrays(cmd.Count, cmd.Arrays)
c.Extras().Add(cmd.Extras().All()...)
out.MutateAndWrite(ctx, id, c)
return

case *GlBindBufferBase:
if cmd.Buffer == 0 {
Expand Down

0 comments on commit 304f4b9

Please sign in to comment.