shithub: tinygl

Download patch

ref: 3fb3d891a7222acd9d9c34040ac08c46810eebe5
parent: 2bbacdba0601b00ea3c919111dbe6e587fb7c55b
author: David <gek@katherine>
date: Fri Feb 12 14:14:49 EST 2021

A

--- a/src/light.c
+++ b/src/light.c
@@ -163,7 +163,7 @@
   switch(pname) {
   case GL_LIGHT_MODEL_AMBIENT:
     for(i=0;i<4;i++) 
-      c->ambient_light_model.v[i]=v[i];
+      c->ambient_light_model.v[i] = p[2+i].f;
     break;
   case GL_LIGHT_MODEL_LOCAL_VIEWER:
     c->local_light_model=(int)v[0];