Fix emulator crashes on glDrawElements command

The current implementation does not properly handle the case when
glDrawElements is called without a buffer binded. This commit
fixes this problem and fixes the crash.

Change-Id: Ic7a5b2fb90c860dad878ed53a369349d479ba4e5
1 file changed