projects
/
dana
/
dcompmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2b9732c
)
Enable VSync (Fix bug 5296)
master
author
Alexander Chehovsky
<MadFishTheOne@gmail.com>
Sun, 30 Sep 2012 19:28:40 +0000
(15:28 -0400)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 30 Sep 2012 19:28:40 +0000
(15:28 -0400)
glxrender.c
patch
|
blob
|
history
diff --git
a/glxrender.c
b/glxrender.c
index
8858479
..
5b2d902
100644
(file)
--- a/
glxrender.c
+++ b/
glxrender.c
@@
-30,6
+30,7
@@
static int plugin_id;
typedef void (*BindEXTFunc)(Display *, GLXDrawable, int, const int *);
typedef void (*ReleaseEXTFunc)(Display *, GLXDrawable, int);
typedef void (*BindEXTFunc)(Display *, GLXDrawable, int, const int *);
typedef void (*ReleaseEXTFunc)(Display *, GLXDrawable, int);
+typedef int (*SwapIntervalSGIFunc)(int);
typedef struct {
void (*screen_paint)(d_screen_t *sc);
typedef struct {
void (*screen_paint)(d_screen_t *sc);
@@
-168,6
+169,11
@@
glxrender_init(d_screen_t *sc, int id)
d->release_func = (ReleaseEXTFunc)
glXGetProcAddress((const guchar*)"glXReleaseTexImageEXT");
d->release_func = (ReleaseEXTFunc)
glXGetProcAddress((const guchar*)"glXReleaseTexImageEXT");
+ SwapIntervalSGIFunc swap_interval_func = (SwapIntervalSGIFunc)
+ glXGetProcAddress((const guchar*)"glXSwapIntervalSGI");
+ if(swap_interval_func)
+ swap_interval_func(1);
+
glGenTextures(1, &d->root_texname);
d->root_glpixmap = XCB_NONE;
}
glGenTextures(1, &d->root_texname);
d->root_glpixmap = XCB_NONE;
}