fix CreateRenderableSphere bugs.

This commit is contained in:
hyzboy 2020-09-05 18:37:25 +08:00
parent 181c703a42
commit e7d9539075

View File

@ -421,9 +421,9 @@ namespace hgl
AutoDelete<VB2f> tex_coord=rc.CreateVADA<VB2f>(VAN::TexCoord); AutoDelete<VB2f> tex_coord=rc.CreateVADA<VB2f>(VAN::TexCoord);
float *vp=vertex->Get(); float *vp=vertex->Get();
float *np=normal->Get(); float *np=normal?normal->Get():nullptr;
float *tp=tangent->Get(); float *tp=tangent?tangent->Get():nullptr;
float *tcp=tex_coord->Get(); float *tcp=tex_coord?tex_coord->Get():nullptr;
for (uint i = 0; i < numberParallels + 1; i++) for (uint i = 0; i < numberParallels + 1; i++)
{ {