fix CreateRenderableSphere bugs.
This commit is contained in:
parent
181c703a42
commit
e7d9539075
@ -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++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user