Skip to content

Commit a778a9d

Browse files
committed
Demo - fix Linux compile
1 parent 3885b27 commit a778a9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/32_gl_interop/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ float g_camera_posY = 5.0;
9898
int g_lastMouseDownUpdateX = -1;
9999
int g_lastMouseDownUpdateY = -1;
100100
GuiRenderImpl::Update g_update;
101-
const std::chrono::steady_clock::time_point g_invalidTime = std::chrono::time_point<std::chrono::high_resolution_clock>::max();
101+
const auto g_invalidTime = std::chrono::time_point<std::chrono::high_resolution_clock>::max();
102102
int g_benchmark_numberOfRenderIteration = 0;
103-
std::chrono::steady_clock::time_point g_benchmark_start = g_invalidTime;
103+
auto g_benchmark_start = g_invalidTime;
104104

105105

106106
// High batch size will increase the RPR performance ( rendering iteration per second ), but lower the render feedback FPS on the OpenGL viewer.
@@ -119,7 +119,7 @@ void renderJob( rpr_context ctxt, GuiRenderImpl::Update* update )
119119

120120
void Update()
121121
{
122-
auto timeUpdateStarts = std::chrono::high_resolution_clock::now();
122+
const auto timeUpdateStarts = std::chrono::high_resolution_clock::now();
123123

124124

125125
//

0 commit comments

Comments
 (0)