Bug 89342

Summary: main/light.c:159:62: error: 'M_PI' undeclared (first use in this function)
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: blocker    
Priority: medium Keywords: regression
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2015-02-26 19:25:41 UTC
mesa: 46110c5d56eb7a2d3c69b2d8565c7631541511b1 (master 10.6.0-devel)

MinGW build error

  CC       main/light.lo
main/light.c: In function '_mesa_light':
main/light.c:159:62: error: 'M_PI' undeclared (first use in this function)
       light->_CosCutoff = (GLfloat) (cos(light->SpotCutoff * M_PI / 180.0));
                                                              ^
Comment 1 Brian Paul 2015-02-26 19:33:33 UTC
Hmm, I don't see that here.  The patch is simple though.  Will post for review.
Comment 2 Brian Paul 2015-02-27 14:06:20 UTC
Fixed with commit 06ed81044fc6b1dee90e67de314f81150746e104

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.