Project

General

Profile

« Previous | Next » 

Revision 3fbd81f1

Added by Leszek Koltunski about 4 years ago

Minor.

View differences:

src/main/java/org/distorted/examples/bean/BeanRenderer.java
131 131
         {
132 132
         is.close();
133 133
         }
134
       catch(IOException e) { }
134
       catch(IOException ignored) { }
135 135
       }
136 136
      
137 137
     mBmpRatio = (float)bitmap.getHeight()/bitmap.getWidth();
src/main/java/org/distorted/examples/bean/BeanSurfaceView.java
28 28

  
29 29
class BeanSurfaceView extends GLSurfaceView 
30 30
{
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32
   
33 31
    public BeanSurfaceView(Context context) 
34 32
      {
35 33
      super(context);
36 34
      final ActivityManager activityManager     = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
37 35
      final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
38
      setEGLContextClientVersion( (configurationInfo.reqGlEsVersion>>16) >= 3 ? 3:2 );
36
      int esVersion = configurationInfo.reqGlEsVersion>>16;
37
      setEGLContextClientVersion(esVersion);
39 38
      setRenderer(new BeanRenderer(this));
40 39
      }
41 40
}

Also available in: Unified diff