Project

General

Profile

« Previous | Next » 

Revision 41ed3f0d

Added by Leszek Koltunski over 3 years ago

Correct an crash when trying to run a program with no vertex effects.

View differences:

src/main/java/org/distorted/library/uniformblock/UniformBlockAssociation.java
71 71
    }
72 72

  
73 73
///////////////////////////////////////////////////////////////////////////////////////////////////
74
// stride can be 0, if we just tried compiling a vertex shader which has NUM_VERTEX=0.
74 75

  
75 76
  public void correctStride(int stride)
76 77
    {
77
    if( mStride != stride )
78
    if( mStride != stride && stride!=0 )
78 79
      {
79 80
      int[] tmp = new int[stride*MAX_EFFECT_COMPONENTS];
80 81

  

Also available in: Unified diff