Project

General

Profile

« Previous | Next » 

Revision 42661133

Added by Leszek Koltunski about 3 years ago

Another attempt at fixing tthings on early Qualcomm OpenGL ES 3.0 drivers.

The previous version does not work on Adreno 405 driver V@100, present for example in a Asus ZenPad 8.
Revert the packed 'ivec2' UBO in the vertex shader back to a 'std140' ivec4. This comes at a price if bumping into the bug on Qualcomm driver version 331 on Adreno 308 - i.e. Samsung Galaxy J4+ again.

On this platform, switch off Gigaminx and then set MAX_COMPONENTS to 98.

View differences:

src/main/java/org/distorted/states/RubikStatePlay.java
38 38
import org.distorted.dialogs.RubikDialogTutorial;
39 39
import org.distorted.main.R;
40 40
import org.distorted.main.RubikActivity;
41
import org.distorted.main.RubikRenderer;
41 42
import org.distorted.objects.ObjectList;
42 43
import org.distorted.scores.RubikScores;
43 44

  
......
281 282
            {
282 283
            if( act.getPreRender().canPlay() && StateList.getCurrentState()== StateList.PLAY )
283 284
              {
284
              mObject = obj;
285
              mSize   = sizes[index];
286
              act.changeObject(list,sizes[index], true);
287
              adjustLevels(act);
288
              mMoves.clear();
285
              if( RubikRenderer.supportsGigaminx() || list!=ObjectList.MEGA || sizes[index]<=3 )
286
                {
287
                mObject = obj;
288
                mSize   = sizes[index];
289
                act.changeObject(list,sizes[index], true);
290
                adjustLevels(act);
291
                mMoves.clear();
292
                }
289 293
              }
290 294

  
291 295
            mObjectPopup.dismiss();

Also available in: Unified diff