mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
fix
This commit is contained in:
parent
fcd4610f21
commit
089a687f36
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@
|
||||
*.zip
|
||||
ext_*
|
||||
*~
|
||||
aclocal.m4
|
||||
config.log
|
||||
autom4te.cache
|
||||
config.status
|
||||
|
1563
aclocal.m4
vendored
1563
aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -124,7 +124,6 @@ void ne_draw_platform_create(ne_draw_t* draw) {
|
||||
XMapWindow(draw->platform->display, draw->platform->window);
|
||||
glXMakeCurrent(draw->platform->display, draw->platform->window, draw->platform->context);
|
||||
|
||||
#if defined(GLX_EXT_swap_control)
|
||||
if(ne_draw_platform_has_extension(draw, "GLX_EXT_swap_control")) {
|
||||
unsigned int tmp = -1;
|
||||
PFNGLXSWAPINTERVALEXTPROC proc = (PFNGLXSWAPINTERVALEXTPROC)glXGetProcAddressARB("glXSwapIntervalEXT");
|
||||
@ -133,9 +132,7 @@ void ne_draw_platform_create(ne_draw_t* draw) {
|
||||
}
|
||||
glXQueryDrawable(draw->platform->display, draw->platform->window, GLX_SWAP_INTERVAL_EXT, &tmp);
|
||||
interval = tmp;
|
||||
} else
|
||||
#endif
|
||||
if(ne_draw_platform_has_extension(draw, "GLX_MESA_swap_control")) {
|
||||
} else if(ne_draw_platform_has_extension(draw, "GLX_MESA_swap_control")) {
|
||||
PFNGLXGETSWAPINTERVALMESAPROC proc = (PFNGLXGETSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXGetSwapIntervalMESA");
|
||||
PFNGLXSWAPINTERVALMESAPROC proc2 = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXSwapIntervalMESA");
|
||||
if(proc2 != NULL) {
|
||||
|
@ -10,9 +10,6 @@
|
||||
ne_engine_t* engine;
|
||||
|
||||
void draw_frame(ne_draw_t* draw) {
|
||||
ne_graphic_text(draw, 0, 0, 32, "test text", 255, 0, 0, 128);
|
||||
ne_graphic_text(draw, 8, 8, 32, "test text", 0, 255, 0, 128);
|
||||
ne_graphic_text(draw, 16, 16, 32, "test text", 0, 0, 255, 128);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user