mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-25 23:13:39 +00:00
[client] our source is vairable frame rate, we can't double buffer at all
This commit is contained in:
parent
04f7800df4
commit
dd0930d265
@ -661,6 +661,8 @@ int run()
|
||||
FcPatternDestroy(pat);
|
||||
}
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
|
||||
|
||||
state.window = SDL_CreateWindow(
|
||||
"Looking Glass (Client)",
|
||||
params.center ? SDL_WINDOWPOS_CENTERED : params.x,
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "memcpySSE.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define BUFFER_COUNT 2
|
||||
#define BUFFER_COUNT 1
|
||||
|
||||
#define FRAME_TEXTURE 0
|
||||
#define FPS_TEXTURE 1
|
||||
@ -125,7 +125,6 @@ bool lgr_opengl_initialize(void ** opaque, const LG_RendererParams params, const
|
||||
}
|
||||
|
||||
SDL_GL_SetSwapInterval(0);
|
||||
glDrawBuffer(GL_FRONT);
|
||||
|
||||
// check if the GPU supports GL_ARB_buffer_storage first
|
||||
// there is no advantage to this renderer if it is not present.
|
||||
@ -645,7 +644,6 @@ bool lgr_opengl_render(void * opaque)
|
||||
lgr_opengl_draw_mouse(this);
|
||||
if (this->fpsTexture)
|
||||
glCallList(this->fpsList);
|
||||
|
||||
glFlush();
|
||||
|
||||
++this->frameCount;
|
||||
|
Loading…
Reference in New Issue
Block a user