diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-05 14:29:37 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-05 14:29:37 -0800 |
commit | 0b22bfff298894796774fdf4398044516571ea89 (patch) | |
tree | 03cd717184fbb93e610227bd62dcd04e86534868 | |
parent | cc1311642d366c21241d5e38864c4c2c698f6f5a (diff) |
object_purgeable: Misc. whitespace and trivial code clean-ups.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r-- | tests/general/object_purgeable.c | 98 |
1 files changed, 50 insertions, 48 deletions
diff --git a/tests/general/object_purgeable.c b/tests/general/object_purgeable.c index 1f3b1bc8b..402d6f040 100644 --- a/tests/general/object_purgeable.c +++ b/tests/general/object_purgeable.c @@ -159,52 +159,54 @@ test_GetObjectParameterivAPPLE(GLenum objectType, GLuint name, GLenum expect) GLboolean test_Purgeable(GLuint object, GLenum type) { - GLboolean pass = GL_TRUE; - - glGetError(); - - if (test_GetObjectParameterivAPPLE(type, object, GL_FALSE) != GL_TRUE) { - fprintf(stderr, "Default state test failed.\n"); - pass = GL_FALSE; - } - - if (test_ObjectpurgeableAPPLE(type, object, GL_VOLATILE_APPLE) != GL_TRUE) { - pass = GL_FALSE; - } - - if (test_GetObjectParameterivAPPLE(type, object, GL_TRUE) != GL_TRUE) { - fprintf(stderr, "Object marked purgeable is not set to purgeable\n"); - pass = GL_FALSE; - } - - if (test_ObjectunpurgeableAPPLE(type, object, GL_RETAINED_APPLE) != GL_TRUE) { - pass = GL_FALSE; - } - - if (test_GetObjectParameterivAPPLE(type, object, GL_FALSE) != GL_TRUE) { - fprintf(stderr, "Object marked unpurgeable is not set to " - "unpurgeable\n"); - pass = GL_FALSE; - } - - if (test_ObjectpurgeableAPPLE(type, object, GL_RELEASED_APPLE) != GL_TRUE) { - pass = GL_FALSE; - } - - if (test_GetObjectParameterivAPPLE(type, object, GL_TRUE) != GL_TRUE) { - fprintf(stderr, "Object marked purgeable is not set to purgeable\n"); - pass = GL_FALSE; - } - - if (test_ObjectunpurgeableAPPLE(type, object, GL_UNDEFINED_APPLE) != GL_TRUE) { - pass = GL_FALSE; - } - - if (test_GetObjectParameterivAPPLE(type, object, GL_FALSE) != GL_TRUE) { - fprintf(stderr, "Object marked unpurgeable is not set to " - "unpurgeable\n"); - pass = GL_FALSE; - } - - return pass; + GLboolean pass = GL_TRUE; + + glGetError(); + + if (!test_GetObjectParameterivAPPLE(type, object, GL_FALSE)) { + fprintf(stderr, "Default state test failed.\n"); + pass = GL_FALSE; + } + + if (!test_ObjectpurgeableAPPLE(type, object, GL_VOLATILE_APPLE)) { + pass = GL_FALSE; + } + + if (!test_GetObjectParameterivAPPLE(type, obje) != GL_TRUE) { + fprintf(stderr, + "Object marked purgeable is not set to purgeable\n"); + pass = GL_FALSE; + } + + if (!test_ObjectunpurgeableAPPLE(type, object, GL_RETAINED_APPLE)) { + pass = GL_FALSE; + } + + if (!test_GetObjectParameterivAPPLE(type, object, GL_FALSE)) { + fprintf(stderr, "Object marked unpurgeable is not set to " + "unpurgeable\n"); + pass = GL_FALSE; + } + + if (!test_ObjectpurgeableAPPLE(type, object, GL_RELEASED_APPLE)) { + pass = GL_FALSE; + } + + if (!test_GetObjectParameterivAPPLE(type, obje) != GL_TRUE) { + fprintf(stderr, + "Object marked purgeable is not set to purgeable\n"); + pass = GL_FALSE; + } + + if (!test_ObjectunpurgeableAPPLE(type, object, GL_UNDEFINED_APPLE)) { + pass = GL_FALSE; + } + + if (!test_GetObjectParameterivAPPLE(type, object, GL_FALSE)) { + fprintf(stderr, "Object marked unpurgeable is not set to " + "unpurgeable\n"); + pass = GL_FALSE; + } + + return pass; } |