Project

General

Profile

« Previous | Next » 

Revision 93aa7e5a

Added by Leszek Koltunski over 4 years ago

Do NOT sett viewport to (500,500) when pre-appllying vertex effects as that causes the first (few?) frames the pre-applied Mesh is displayed to be displayed in a wrong place on the screen.

View differences:

src/main/java/org/distorted/library/main/DistortedLibrary.java
481 481
    {
482 482
    if( mFullProgram!=null )
483 483
      {
484
      GLES30.glViewport(0, 0, 500, 500 ); // this is fine, we don't need viewport at all
485

  
486 484
      int num = mesh.getNumVertices();
487 485
      int tfo = mesh.getTFO();
488 486

  

Also available in: Unified diff