fixed unused variable under some settings

This commit is contained in:
Zeno Rogue 2021-01-02 16:58:15 +01:00
parent 992c44c7e6
commit f73bb98a27
1 changed files with 2 additions and 1 deletions

View File

@ -562,8 +562,9 @@ void display_data::set_projection(int ed, ld shift) {
bool u_alpha = false;
auto use_mv = [cd] {
auto use_mv = [] {
#if CAP_VR
auto cd = current_display;
if(vrhr::rendering_eye()) {
glhr::projection_multiply(glhr::tmtogl_transpose(vrhr::hmd_mvp));
glhr::id_modelview();