question

James Shaver avatar image
James Shaver asked

EGL configs and Fire 7

Hi,

I've been trying to get a GL android app (http://www.apress.com/downloadable/download/sample/sample_id/1769/) to compile and run properly on my Fire 7. The tablet is running Fire OS 5.1.1. I've been using Android Studio 1.5 to compile out to the device and I can get gl shapes to show up on my custom apps. However any sort of transform, or texture doesn't show up. I've had success with the code above running it on ldpi emulator and adding the line in the constructor: public GameView(Context context) { super(context);

setEGLContextClientVersion(2); //The line below setEGLConfigChooser(8, 8, 8, 8, 16, 0);

gameRenderer = new GameRenderer(context);

setRenderer(gameRenderer);

}

This causes the whole GL view crash on the device though. Is there a good EGLConfig for my device that allows textures? or is not really an option? (For some reason it keeps on defaulting to 1.4)

fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

James Shaver avatar image
James Shaver answered
As a side note, I was able to get the same code to compile and run on a samsung galaxy tab4 with no change to the sample. Which makes me wonder if there is sort of handicapped/ specialized version of OpenGL ES textures running on this device.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.