~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/aniso.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    const char *exts = (const char *)glGetString(GL_EXTENSIONS);
67
67
    assert(hasext(exts, "GL_EXT_texture_filter_anisotropic"));
68
68
 
 
69
    const char *vendor = (const char *)glGetString(GL_VENDOR);
 
70
    printf("vendor: %s\n", vendor);
 
71
 
69
72
    GLint aniso;
70
73
    glGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &aniso);
71
74
    printf("Max anisotropy: %d (using that)\n", aniso);
148
151
      assert(!glGetError());
149
152
      glBindFramebuffer(GL_RENDERBUFFER, 0);
150
153
      assert(glGetError());
 
154
 
 
155
      GLint out = 321;
 
156
      assert(!glGetError());
 
157
      glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &out); // invalid, just test output
 
158
      assert(out == 0);
151
159
    }
152
160
 
153
161
    // Prepare and Render