mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 06:32:41 +00:00
Update GLGSRender.cpp
This commit is contained in:
parent
e56c6914d2
commit
f52c644af7
@ -15,7 +15,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
gcmBuffer gcmBuffers[8];
|
gcmBuffer gcmBuffers[8];
|
||||||
GLuint g_flip_tex, g_depth_tex, g_pbo[5];
|
GLuint g_flip_tex, g_depth_tex, g_pbo[6];
|
||||||
int last_width = 0, last_height = 0, last_depth_format = 0;
|
int last_width = 0, last_height = 0, last_depth_format = 0;
|
||||||
|
|
||||||
GLenum g_last_gl_error = GL_NO_ERROR;
|
GLenum g_last_gl_error = GL_NO_ERROR;
|
||||||
@ -703,7 +703,7 @@ void GLGSRender::OnInitThread()
|
|||||||
|
|
||||||
glGenTextures(1, &g_depth_tex);
|
glGenTextures(1, &g_depth_tex);
|
||||||
glGenTextures(1, &g_flip_tex);
|
glGenTextures(1, &g_flip_tex);
|
||||||
glGenBuffers(5, g_pbo); // 4 color + 1 depth
|
glGenBuffers(6, g_pbo); // 4 for color buffers + 1 for depth buffer + 1 for flip()
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
glSwapInterval(Ini.GSVSyncEnable.GetValue() ? 1 : 0);
|
glSwapInterval(Ini.GSVSyncEnable.GetValue() ? 1 : 0);
|
||||||
@ -720,7 +720,7 @@ void GLGSRender::OnExitThread()
|
|||||||
{
|
{
|
||||||
glDeleteTextures(1, &g_flip_tex);
|
glDeleteTextures(1, &g_flip_tex);
|
||||||
glDeleteTextures(1, &g_depth_tex);
|
glDeleteTextures(1, &g_depth_tex);
|
||||||
glDeleteBuffers(5, g_pbo);
|
glDeleteBuffers(6, g_pbo);
|
||||||
|
|
||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
glDisable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
glDisable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user