Revision fe6fe99a
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/program/DistortedProgram.java | ||
---|---|---|
22 | 22 |
import android.opengl.GLES30; |
23 | 23 |
import android.os.Build; |
24 | 24 |
|
25 |
import org.distorted.library.effect.EffectType; |
|
25 | 26 |
import org.distorted.library.main.DistortedEffects; |
26 | 27 |
|
27 | 28 |
import java.io.BufferedReader; |
... | ... | |
201 | 202 |
int realMaxV = (maxV-11)/4; // adjust this in case of changes to the shaders... |
202 | 203 |
int realMaxF = (maxF- 2)/4; // |
203 | 204 |
|
204 |
if( DistortedEffects.getMaxVertex() > realMaxV )
|
|
205 |
if( DistortedEffects.getMax(EffectType.VERTEX) > realMaxV )
|
|
205 | 206 |
{ |
206 | 207 |
throw new VertexUniformsException("Too many effects in the vertex shader, max is "+realMaxV, realMaxV); |
207 | 208 |
} |
208 |
if( DistortedEffects.getMaxFragment() > realMaxF )
|
|
209 |
if( DistortedEffects.getMax(EffectType.FRAGMENT) > realMaxF )
|
|
209 | 210 |
{ |
210 | 211 |
throw new FragmentUniformsException("Too many effects in the fragment shader, max is "+realMaxF, realMaxF); |
211 | 212 |
} |
Also available in: Unified diff
Small API simplification.