Cleanup and refactoring of an earlier cl.

Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
This commit is contained in:
Alex Sakhartchouk
2010-12-15 09:59:58 -08:00
parent 320a4beda3
commit 0857196107
12 changed files with 139 additions and 186 deletions

View File

@@ -40,6 +40,7 @@ public class Sampler extends BaseObj {
NEAREST (0),
LINEAR (1),
LINEAR_MIP_LINEAR (2),
LINEAR_MIP_NEAREST (5),
WRAP (3),
CLAMP (4);
@@ -201,7 +202,8 @@ public class Sampler extends BaseObj {
public void setMin(Value v) {
if (v == Value.NEAREST ||
v == Value.LINEAR ||
v == Value.LINEAR_MIP_LINEAR) {
v == Value.LINEAR_MIP_LINEAR ||
v == Value.LINEAR_MIP_NEAREST) {
mMin = v;
} else {
throw new IllegalArgumentException("Invalid value");