Skip to content

Commit

Permalink
sokol_glue.h: initialize env.gl.major/minor_version
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Apr 8, 2024
1 parent cb7bcf6 commit 1b5d2f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sokol_glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ SOKOL_API_IMPL sg_environment sglue_environment(void) {
env.d3d11.device = sapp_d3d11_get_device();
env.d3d11.device_context = sapp_d3d11_get_device_context();
env.wgpu.device = sapp_wgpu_get_device();
env.gl.major_version = sapp_gl_get_major_version();
env.gl.minor_version = sapp_gl_get_minor_version();
return env;
}

Expand Down

0 comments on commit 1b5d2f4

Please sign in to comment.