gles2_conform_support.c 686 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // A small sample just to make sure we can actually compile and link
  5. // our OpenGL ES 2.0 conformance test support code.
  6. #include <EGL/egl.h>
  7. #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
  8. // Note: This code is not intended to run, only compile and link.
  9. int GTFMain(int argc, char** argv) {
  10. EGLint major, minor;
  11. EGLDisplay eglDisplay;
  12. EGLNativeDisplayType nativeDisplay = EGL_DEFAULT_DISPLAY;
  13. eglDisplay = eglGetDisplay(nativeDisplay);
  14. eglInitialize(eglDisplay, &major, &minor);
  15. return 0;
  16. }