Commit Graph

9 Commits

Author SHA1 Message Date
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
Giulio Camuffo f1f1b32490 TinyGL: Fix enabling of lights. Fix #393 2011-10-28 18:23:17 +02:00
Ori Avtalion c4870a2a20 TinyGL: Silence clang warnings about =- 2011-07-30 11:35:18 +03:00
Pawel Kolodziejski 44e31ba08e formatting 2011-05-08 11:07:51 +02:00
Joost Peters 31f3728164 TINYGL: Fix material and lighting color on 64-bit CPUs; the old code assumed sizeof(float)==sizeof(void*) 2011-04-29 00:59:37 +08:00
Pawel Kolodziejski 49b578ec6a put tinygl internals into namespace, left only api 2009-05-25 13:19:29 +00:00
Pawel Kolodziejski 41b92f44c7 formating 2009-05-17 08:57:38 +00:00
Pawel Kolodziejski 110527019b make compilable after latest change 2009-05-08 07:32:33 +00:00
Pawel Kolodziejski f85c21fa4c moved tinygl 2009-05-08 07:17:43 +00:00