Revision 835b197e
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/uniformblock/UniformBlockAssociation.java | ||
---|---|---|
74 | 74 |
|
75 | 75 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
76 | 76 |
// stride can be 0, if we just tried compiling a vertex shader which has NUM_VERTEX=0. |
77 |
// stride==1 we also don't like because then we have an exception ( stride*mMax-1 < stride*(mMax-1)+1 ) |
|
77 | 78 |
|
78 | 79 |
public void correctStride(int stride) |
79 | 80 |
{ |
80 |
if( mStride != stride && stride!=0 )
|
|
81 |
if( mStride != stride && stride>1 )
|
|
81 | 82 |
{ |
82 | 83 |
int[] tmp = new int[stride*mMax]; |
83 | 84 |
|
Also available in: Unified diff
Move the information when was a EffectQueue last time evaluated from the EffectQueues all the way up to the Node which contains them.
The point: we need to reset this time back to 0 every time we attach the Node (and thus start evaluating the Queues inside)