Skip to content
This repository

x86 Emulator/Device support, and emulator support #84

Merged
merged 2 commits into from almost 2 years ago

2 participants

ThePickleMan Dennis Ippel
ThePickleMan

The Android Emulator supports OpenGL ES 2.0, however, it reports that it doesn't. I added a protected field to RajawaliActivity that allows you to disable 2.0 compatibility checking, allowing for debug on the emulator.

In addition, I compiled the OpenGL ES 2.0 fix library for x86 processors, allowing Rajawali to be tested on x86 Emulators.

Dennis Ippel MasDennis merged commit eed9555 into from
Dennis Ippel MasDennis closed this
Dennis Ippel
Owner

Excellent, thanks. Very much appreciated!

xroberx xroberx referenced this pull request
Closed

Android GPU Emulator #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
BIN  libs/x86/libfix-GLES20.so
Binary file not shown
9  src/rajawali/RajawaliActivity.java
@@ -25,6 +25,7 @@
25 25
 	protected boolean mMultisamplingEnabled = false;
26 26
 	protected boolean mUsesCoverageAa;
27 27
 	private RajawaliRenderer mRajRenderer;
  28
+	protected boolean checkOpenGLVersion = true;
28 29
 	
29 30
     @Override
30 31
     public void onCreate(Bundle savedInstanceState) {
@@ -32,9 +33,11 @@ public void onCreate(Bundle savedInstanceState) {
32 33
         mSurfaceView = new GLSurfaceView(this);
33 34
         
34 35
         ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
35  
-        ConfigurationInfo info = am.getDeviceConfigurationInfo();
36  
-        if(info.reqGlEsVersion < 0x20000)
37  
-        	throw new Error("OpenGL ES 2.0 is not supported by this device");
  36
+        if(checkOpenGLVersion) {
  37
+        	ConfigurationInfo info = am.getDeviceConfigurationInfo();
  38
+        	if(info.reqGlEsVersion < 0x20000)
  39
+        		throw new Error("OpenGL ES 2.0 is not supported by this device");
  40
+        }
38 41
         mSurfaceView.setEGLContextClientVersion(2);
39 42
         mLayout = new FrameLayout(this);
40 43
         mLayout.addView(mSurfaceView);
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.