Skip to content

Commit

Permalink
Using fopen_s now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 9, 2024
1 parent eda22c2 commit f8cc5ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiny_bvh_fenster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ void Init()
{
#ifdef LOADSPONZA
// load raw vertex data for Crytek's Sponza
FILE* f = fopen( "../testdata/cryteksponza.bin", "rb" );
FILE* f;
fopen_s( &f, "../testdata/cryteksponza.bin", "rb" );
fread( &verts, 1, 4, f );
verts *= 3, triangles = new bvhvec4[verts];
fread( triangles, sizeof( bvhvec4 ), verts, f );
Expand Down

0 comments on commit f8cc5ef

Please sign in to comment.