Skip to content

Commit

Permalink
Fix segmentation fault in mesh_filter/gl_renderer
Browse files Browse the repository at this point in the history
The misusage of std::map is fixed.
  • Loading branch information
CihatAltiparmak authored May 16, 2024
1 parent 6454a07 commit f3a4ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_ros/perception/mesh_filter/src/gl_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void mesh_filter::GLRenderer::createGLContext()

if (context_it == s_context.end())
{
s_context.at(thread_id) = std::pair<unsigned, GLuint>(1, 0);
s_context[thread_id] = std::pair<unsigned, GLuint>(1, 0);

glutInitWindowPosition(glutGet(GLUT_SCREEN_WIDTH) + 30000, 0);
glutInitWindowSize(1, 1);
Expand Down

0 comments on commit f3a4ea3

Please sign in to comment.