Texample2 icon indicating copy to clipboard operation
Texample2 copied to clipboard

Crashes Visual Studio Emulator for Android

Open Myndale opened this issue 6 years ago • 0 comments

I suspect that this project currently crashes the latest version of the VS Android Emulator (v 1.1.622.2). I've tracked it down to the unbind function in Vertices.java:

public void unbind()  {
	GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);
}

It would appear that glDisableVertexAttribArray also needs to be called on mMVPIndexHandle, and I'm guessing mPositionHandle probably needs it as well. I haven't seen this on any physical hardware and it only broke on the emulator sometime over the past year.

My apologies for not fixing this myself and submitting a pull-request, I'm not actually set up with Android Studio at the moment and have only seen this in a C#/Xamarin port of the code (although I'd be rather surprised if that was somehow causing it).

Myndale avatar Jun 18 '18 11:06 Myndale