mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Make tests and examples use glad
This commit is contained in:
+3
-7
@@ -23,14 +23,9 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
/* HACK: Explicitly include the glext.h shipping with GLFW, as this program uses
|
||||
* many modern symbols not provided by the versions in some development
|
||||
* environments (for example on OS X).
|
||||
*/
|
||||
#include <GL/glext.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -470,6 +465,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
glfwMakeContextCurrent(window);
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
|
||||
// Report client API version
|
||||
|
||||
@@ -500,7 +496,7 @@ int main(int argc, char** argv)
|
||||
|
||||
if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
|
||||
printf(" forward-compatible");
|
||||
if (flags & GL_CONTEXT_FLAG_DEBUG_BIT)
|
||||
if (flags & 2/*GL_CONTEXT_FLAG_DEBUG_BIT*/)
|
||||
printf(" debug");
|
||||
if (flags & GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB)
|
||||
printf(" robustness");
|
||||
|
||||
Reference in New Issue
Block a user