I was trying to get things up and running on Windows 10 and Visual Studio 2015 and I've run into a few issues. In handmade_render_group.cpp, line 304-314, the "X" and "Y" variables are shadowing the loop variables.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
int32 X = (int32)tX;
int32 Y = (int32)tY;

real32 fX = tX - (real32)X;
real32 fY = tY - (real32)Y;

Assert((X >= 0) && (X < Texture->Width));
Assert((Y >= 0) && (Y < Texture->Height));

bilinear_sample TexelSample = BilinearSample(Texture, X, Y);
v4 Texel = SRGBBilinearBlend(TexelSample, fX, fY);


This causes a compiler error.

I haven't watched the videos either, so I don't actually know which "X" and "Y" the code surrounding is supposed to be using. My guess is the inner defined ones.

Anyhow, might want to clean that up.