From 1554788aa4ed70528643f6c9ce89f061012fb9d7 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Tue, 29 May 2012 23:21:50 -0700 Subject: [PATCH] Cleanup. --- src/renderer_gl.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 678bb14a3..bfcf0a8e4 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -360,11 +360,6 @@ namespace bgfx } #elif BX_PLATFORM_LINUX - static void linuxInitDisplay() - { - s_renderCtx.setRenderContextSize(BGFX_DEFAULT_WIDTH, BGFX_DEFAULT_HEIGHT); - } - bool linuxGetDisplay(Display** _display, Window* _window) { if (!s_renderCtx.m_display) @@ -635,9 +630,10 @@ namespace bgfx GL_CHECK(glGetProgramiv(m_id, GL_PROGRAM_BINARY_LENGTH, &length) ); void* data = g_realloc(NULL, length); GL_CHECK(glGetProgramBinary(m_id, length, NULL, &format, data) ); - g_free(data); dbgPrintfData(data, length, "Binary 0x%08x", format); + + g_free(data); } #endif // BGFX_CONFIG_RENDERER_OPENGL @@ -2091,10 +2087,6 @@ namespace bgfx void* renderThread(void*) #endif // BX_PLATFORM_WINDOWS { -#if BX_PLATFORM_LINUX - linuxInitDisplay(); -#endif // BX_PLATFORM_LINUX - while (!s_exit) { renderFrame();