Project

General

Profile

« Previous | Next » 

Revision bad94fe5

Added by Leszek Koltunski about 3 years ago

Relax the conditions when we do not support Gigaminx - looks like Adreno 30x has nothing to do with it, just driver version 331.

View differences:

src/main/java/org/distorted/main/RubikRenderer.java
198 198
       {
199 199
       String vendor  = GLES30.glGetString(GLES30.GL_VENDOR);
200 200
       String version = GLES30.glGetString(GLES30.GL_VERSION);
201
       String renderer= GLES30.glGetString(GLES30.GL_RENDERER);
202 201

  
203
       if( vendor.contains("Qualcomm"))
202
       if( vendor.contains("Qualcomm") && version.contains("V@331") )
204 203
         {
205
         if( (renderer.contains("Adreno") && renderer.contains("30")) || version.contains("V@331") )
206
           {
207
           // on Adreno 30x or driver version 331,  do not support Gigaminx.
208
           // Then Cube5 is the largest with 98 components.
209
           MeshBase.setMaxEffComponents(98);
210
           mSupportsGigaminx = false;
211
           }
204
         // on driver version 331,  do not support Gigaminx.
205
         // Then Cube5 is the largest with 98 components.
206
         MeshBase.setMaxEffComponents(98);
207
         mSupportsGigaminx = false;
212 208
         }
213 209
       }
214 210
     }

Also available in: Unified diff