Revision d23592bb
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/library/program/DistortedProgram.java | ||
---|---|---|
38 | 38 |
private int mNumAttributes; |
39 | 39 |
private int mNumUniforms; |
40 | 40 |
private String[] mAttributeName; |
41 |
private String[] mUniformName; |
|
42 | 41 |
private final int mProgramHandle; |
43 | 42 |
|
44 | 43 |
/** |
... | ... | |
367 | 366 |
if( mNumUniforms>0 ) |
368 | 367 |
{ |
369 | 368 |
mUniform = new int[mNumUniforms]; |
370 |
mUniformName = mUniList.split(" ");
|
|
369 |
String[] uniformName = mUniList.split(" ");
|
|
371 | 370 |
|
372 | 371 |
for(int i=0; i<mNumUniforms; i++) |
373 | 372 |
{ |
374 |
mUniform[i] = GLES30.glGetUniformLocation( mProgramHandle, mUniformName[i]);
|
|
373 |
mUniform[i] = GLES30.glGetUniformLocation( mProgramHandle, uniformName[i]);
|
|
375 | 374 |
} |
376 | 375 |
} |
377 | 376 |
else mUniform = null; |
Also available in: Unified diff
Minor.