* Prevent constant exception in FrameBuffer.setTargetIndex()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9034 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
1aabed9bc5
commit
fc5c7d06d2
@ -284,9 +284,9 @@ public class FrameBuffer extends NativeObject {
|
||||
*/
|
||||
public void setTargetIndex(int index){
|
||||
if (index < 0 || index >= 16)
|
||||
throw new IllegalArgumentException();
|
||||
throw new IllegalArgumentException("Target index must be between 0 and 16");
|
||||
|
||||
if (colorBufs.size() >= index)
|
||||
if (colorBufs.size() < index)
|
||||
throw new IllegalArgumentException("The target at " + index + " is not set!");
|
||||
|
||||
colorBufIndex = index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user