| Index: client/deps/glbench/src/main.h
|
| diff --git a/client/deps/glbench/src/main.h b/client/deps/glbench/src/main.h
|
| index dc07a56e6a7b1f07502340cb3f5a12c5c1355a8c..10c1dea41af21b6eb253e43b41c377c67a6c0d8a 100644
|
| --- a/client/deps/glbench/src/main.h
|
| +++ b/client/deps/glbench/src/main.h
|
| @@ -12,6 +12,7 @@
|
| #include <GLES/gl.h>
|
| #else
|
| #include <GL/gl.h>
|
| +#include <GL/glx.h>
|
|
|
| #define LIST_PROC_FUNCTIONS(F) \
|
| F(glAttachShader, PFNGLATTACHSHADERPROC) \
|
| @@ -33,7 +34,8 @@
|
| F(glUniform1f, PFNGLUNIFORM1FPROC) \
|
| F(glUniform1i, PFNGLUNIFORM1IPROC) \
|
| F(glUseProgram, PFNGLUSEPROGRAMPROC) \
|
| - F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC)
|
| + F(glVertexAttribPointer, PFNGLVERTEXATTRIBPOINTERPROC) \
|
| + F(glXSwapIntervalSGI, PFNGLXSWAPINTERVALSGIPROC)
|
|
|
| #define F(fun, type) extern type fun;
|
| LIST_PROC_FUNCTIONS(F)
|
| @@ -50,11 +52,13 @@ inline uint64_t GetUTime() {
|
|
|
| extern GLint g_width;
|
| extern GLint g_height;
|
| +extern bool g_override_redirect;
|
|
|
| bool Init();
|
| bool InitContext();
|
| void DestroyContext();
|
| void SwapBuffers();
|
| +bool SwapInterval(int interval);
|
|
|
| // BenchFunc functions are assumed to execute an operation iter times. See
|
| // Bench for a detailed explanation.
|
|
|