diff options
Diffstat (limited to 'core/client.cpp')
| -rw-r--r-- | core/client.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/client.cpp b/core/client.cpp index d541129..750f2be 100644 --- a/core/client.cpp +++ b/core/client.cpp @@ -22,7 +22,6 @@ // [section] includes // ---------------------------------------------------------------------------- #include <arpa/inet.h> -#include <GL/glu.h> #include <GLFW/glfw3.h> #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> @@ -348,8 +347,6 @@ std::array g_hm_colormap = std::to_array<ImVec4>({ {0.988f, 1.000f, 0.643f, 1.f}, }); -PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData; - // ---------------------------------------------------------------------------- // [section] string comparator definition // ---------------------------------------------------------------------------- @@ -747,7 +744,7 @@ void PlotHeatmap::render_internal(const ImVec2 &frame_size) { assert(new_tex_id); if (m_tex_id) { - glCopyImageSubData( + ((PFNGLCOPYIMAGESUBDATAPROC)glfwGetProcAddress("glCopyImageSubData"))( m_tex_id, GL_TEXTURE_2D, 0, 0, rows_to_chop_off, 0, new_tex_id, GL_TEXTURE_2D, 0, 0, 0, 0, g_hm_pixel_count, m_rows_rendered - rows_to_chop_off, 1 @@ -1464,9 +1461,6 @@ void init() { glfwSwapInterval(0); #endif - glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)glfwGetProcAddress("glCopyImageSubData"); - assert(glCopyImageSubData); - log_info("Initializing ImGui"); IMGUI_CHECKVERSION(); ImGui::CreateContext(); |
