minor fix in GL3+ rendering