mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-21 20:39:57 +01:00
Fix uninitialized value
This commit is contained in:
parent
4324cd1c76
commit
9297cc7c79
1 changed files with 3 additions and 3 deletions
4
s3l.h
4
s3l.h
|
@ -508,7 +508,7 @@ void S3L_makeScaleMatrix(
|
||||||
{
|
{
|
||||||
#define M(x,y) (*m)[x][y]
|
#define M(x,y) (*m)[x][y]
|
||||||
|
|
||||||
M(0,0) = scaleX; M(2,0) = 0; M(3,0) = 0;
|
M(0,0) = scaleX; M(1,0) = 0; M(2,0) = 0; M(3,0) = 0;
|
||||||
M(0,1) = 0; M(1,1) = scaleY; M(2,1) = 0; M(3,1) = 0;
|
M(0,1) = 0; M(1,1) = scaleY; M(2,1) = 0; M(3,1) = 0;
|
||||||
M(0,2) = 0; M(1,2) = 0; M(2,2) = scaleZ; M(3,2) = 0;
|
M(0,2) = 0; M(1,2) = 0; M(2,2) = scaleZ; M(3,2) = 0;
|
||||||
M(0,3) = 0; M(1,3) = 0; M(2,3) = 0; M(3,3) = S3L_FRACTIONS_PER_UNIT;
|
M(0,3) = 0; M(1,3) = 0; M(2,3) = 0; M(3,3) = S3L_FRACTIONS_PER_UNIT;
|
||||||
|
@ -1374,7 +1374,7 @@ void S3L_drawModelIndexed(
|
||||||
S3L_Index coordIndex = 0;
|
S3L_Index coordIndex = 0;
|
||||||
|
|
||||||
S3L_Vec4 pointModel, transformed0, transformed1, transformed2;
|
S3L_Vec4 pointModel, transformed0, transformed1, transformed2;
|
||||||
S3L_Unit indexIndex;
|
S3L_Unit indexIndex = 0;
|
||||||
|
|
||||||
pointModel.w = S3L_FRACTIONS_PER_UNIT; // has to be "1.0" for translation
|
pointModel.w = S3L_FRACTIONS_PER_UNIT; // has to be "1.0" for translation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue