Report GL Renderer in RendererException

This commit is contained in:
Cameron Gutman
2017-11-20 22:38:22 -08:00
parent 85d0ce0c40
commit ff38074f55
2 changed files with 15 additions and 9 deletions

View File

@@ -226,7 +226,8 @@ public class Game extends Activity implements SurfaceHolder.Callback,
shortcutHelper.reportShortcutUsed(uuid);
// Initialize the MediaCodec helper before creating the decoder
MediaCodecHelper.initialize(this, GlPreferences.readPreferences(this).glRenderer);
GlPreferences glPrefs = GlPreferences.readPreferences(this);
MediaCodecHelper.initialize(this, glPrefs.glRenderer);
// Check if the user has enabled HDR
if (prefConfig.enableHdr) {
@@ -277,7 +278,8 @@ public class Game extends Activity implements SurfaceHolder.Callback,
},
tombstonePrefs.getInt("CrashCount", 0),
connMgr.isActiveNetworkMetered(),
willStreamHdr
willStreamHdr,
glPrefs.glRenderer
);
// Don't stream HDR if the decoder can't support it