Skip to content

Commit

Permalink
docs(gl): remove global variable from gl.quad sample
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Nov 23, 2024
1 parent 1899421 commit e3a1b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/samples/gl/quad/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct State
gl::RasterState rasterState;

float t;
} state;
};

void update(void* data)
{
Expand Down Expand Up @@ -74,6 +74,7 @@ void update(void* data)

int main()
{
State state{};
state.window = io::openWindow();
auto& renderDevice = state.window->renderDevice();

Expand Down

0 comments on commit e3a1b6a

Please sign in to comment.