From 7b8b32f3727c1cd445e577085e221364d99ed7b5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 21 Sep 2023 04:04:33 +0200 Subject: Dont show cursor when playing video --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index c951594..36773bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2564,14 +2564,14 @@ void CMainApplication::RenderScene( vr::Hmd_Eye nEye ) m[0] += (-cursor_offset_x * arrow_drawn_scale_x) / (float)window_width; m[1] += (-cursor_offset_y * arrow_drawn_scale_y) / (float)window_height; - glUniform2fv(m_nCursorLocation, 1, &m[0]); - glBindVertexArray( m_unSceneVAO ); glActiveTexture(GL_TEXTURE0); if(mpv_file) { if(mpvBuffers != nullptr) { + m[0] = -1.0f; + m[1] = -1.0f; glBindTexture(GL_TEXTURE_2D, mpvBuffers->get_showTextureId()); } } @@ -2579,6 +2579,7 @@ void CMainApplication::RenderScene( vr::Hmd_Eye nEye ) { glBindTexture(GL_TEXTURE_2D, window_texture_get_opengl_texture_id(&window_texture)); } + glUniform2fv(m_nCursorLocation, 1, &m[0]); //glBindTexture(GL_TEXTURE_2D, mpv_file ? mpvDesc.m_nRenderTextureId : window_texture_get_opengl_texture_id(&window_texture)); glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, mpv_file ? 0 : arrow_image_texture_id); -- cgit v1.2.3