Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix alert when using crappy Qualcomm drivers.
  • Loading branch information
Sonicadvance1 committed Nov 30, 2013
1 parent 1dfe303 commit 0203313
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -6,7 +6,6 @@

package org.dolphinemu.dolphinemu.settings.video;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.SharedPreferences;
Expand All @@ -16,6 +15,7 @@
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.preference.PreferenceScreen;
import android.util.Log;
import org.dolphinemu.dolphinemu.R;

import javax.microedition.khronos.egl.*;
Expand All @@ -32,7 +32,6 @@ public final class VideoSettingsFragment extends PreferenceFragment
public static String m_GLExtensions;
public static float m_QualcommVersion;
public static boolean m_Inited = false;
private Activity m_activity;

/**
* Class which provides a means to retrieve various
Expand Down Expand Up @@ -264,7 +263,7 @@ else if (preference.getString(key, "Software Renderer").equals("OGL"))
&& VideoSettingsFragment.m_GLVendor.equals("Qualcomm")
&& VideoSettingsFragment.m_QualcommVersion == 14.0f)
{
AlertDialog.Builder builder = new AlertDialog.Builder(m_activity);
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setTitle(R.string.device_compat_warning);
builder.setMessage(R.string.device_gles3compat_warning_msg);
builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
Expand Down

0 comments on commit 0203313

Please sign in to comment.