Load shared GLESv2 library
This commit is contained in:
@@ -446,6 +446,16 @@ public class MainActivity extends Activity {
|
||||
|
||||
public void LoadLibraries()
|
||||
{
|
||||
try
|
||||
{
|
||||
if(Globals.NeedGles2)
|
||||
System.loadLibrary("GLESv2");
|
||||
}
|
||||
catch ( UnsatisfiedLinkError e )
|
||||
{
|
||||
System.out.println("libSDL: Cannot load GLESv2 lib");
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
for(String l : Globals.AppLibraries)
|
||||
|
||||
@@ -2356,7 +2356,7 @@ class Settings
|
||||
|
||||
static void Apply(Activity p)
|
||||
{
|
||||
nativeSetVideoDepth(Globals.VideoDepthBpp);
|
||||
nativeSetVideoDepth(Globals.VideoDepthBpp, Globals.NeedGles2 ? 1 : 0);
|
||||
if(Globals.SmoothVideo)
|
||||
nativeSetSmoothVideo();
|
||||
if( Globals.CompatibilityHacks )
|
||||
@@ -2489,7 +2489,7 @@ class Settings
|
||||
private static native void nativeSetMultitouchUsed();
|
||||
private static native void nativeSetTouchscreenKeyboardUsed();
|
||||
private static native void nativeSetSmoothVideo();
|
||||
private static native void nativeSetVideoDepth(int bpp);
|
||||
private static native void nativeSetVideoDepth(int bpp, int gles2);
|
||||
private static native void nativeSetCompatibilityHacks();
|
||||
private static native void nativeSetVideoMultithreaded();
|
||||
private static native void nativeSetupScreenKeyboard(int size, int drawsize, int theme, int nbuttonsAutoFire, int transparency);
|
||||
|
||||
Reference in New Issue
Block a user