From e3a1b6a22f7d33c2ed4c174db072e3760854f5ad Mon Sep 17 00:00:00 2001 From: Ricardo Antunes Date: Sat, 23 Nov 2024 10:03:26 +0100 Subject: [PATCH] docs(gl): remove global variable from gl.quad sample --- core/samples/gl/quad/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/samples/gl/quad/main.cpp b/core/samples/gl/quad/main.cpp index b482c0e4c5..7825abb0d2 100644 --- a/core/samples/gl/quad/main.cpp +++ b/core/samples/gl/quad/main.cpp @@ -25,7 +25,7 @@ struct State gl::RasterState rasterState; float t; -} state; +}; void update(void* data) { @@ -74,6 +74,7 @@ void update(void* data) int main() { + State state{}; state.window = io::openWindow(); auto& renderDevice = state.window->renderDevice();