aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-03 11:59:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-03 11:59:02 -0800
commitd3dcf0915b6b566bd492dc8473c0c4a24b2ba5b4 (patch)
tree5f771f5ac7ba45c04597d9f604dbe6a2e7699104 /tests
parent519efb8e48baa01d4af89cb66dc060da18e439b2 (diff)
fix output in glGetFramebufferAttachmentParameteriv
Diffstat (limited to 'tests')
-rw-r--r--tests/aniso.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/aniso.c b/tests/aniso.c
index f1674cad..443e50aa 100644
--- a/tests/aniso.c
+++ b/tests/aniso.c
@@ -151,6 +151,11 @@ int main(int argc, char *argv[])
assert(!glGetError());
glBindFramebuffer(GL_RENDERBUFFER, 0);
assert(glGetError());
+
+ GLint out = 321;
+ assert(!glGetError());
+ glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &out); // invalid, just test output
+ assert(out == 0);
}
// Prepare and Render