mirror of
https://github.com/edubart/otclient.git
synced 2025-12-20 23:47:12 +01:00
more graphics optimizations
* avoid buffers clears * use scisors testing instead of stencil testing for clipping * remove stencil buffers
This commit is contained in:
@@ -369,7 +369,7 @@ void X11Window::internalChooseGLVisual()
|
||||
GLX_USE_GL,
|
||||
GLX_RGBA,
|
||||
GLX_DOUBLEBUFFER,
|
||||
GLX_STENCIL_SIZE, 8,
|
||||
//GLX_STENCIL_SIZE, 8,
|
||||
/*
|
||||
GLX_ACCUM_RED_SIZE, 8,
|
||||
GLX_ACCUM_GREEN_SIZE, 8,
|
||||
@@ -388,7 +388,7 @@ void X11Window::internalChooseGLVisual()
|
||||
static int attrList[] = {
|
||||
//EGL_BUFFER_SIZE, 24,
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
||||
EGL_STENCIL_SIZE, 1,
|
||||
//EGL_STENCIL_SIZE, 8,
|
||||
EGL_NONE
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user