Guillem Jover a50201481d TinyGL: Do not underflow on specular light calculation
When casting from float to int, the value can underflow making the index
negative which causes a segmentation fault when accessing the array.

Fixes #320
2012-01-05 20:39:53 +01:00
..
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-06-09 11:17:15 +02:00
2011-07-20 06:58:19 +02:00
2011-07-20 06:58:19 +02:00
2011-06-09 11:17:15 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-07-20 06:58:19 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-05-18 23:33:39 +02:00
2011-07-20 08:02:02 +02:00
2011-07-20 08:02:02 +02:00