View Issue Details

IDProjectCategoryView StatusLast Update
0002084FSSCPgraphicspublic2010-01-15 18:06
ReporterEchelon9 Assigned ToEchelon9  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.11 
Summary0002084: Fragment shader blur-f.sdr fails to compile on OS X
DescriptionWhen using Hery's -post_process feature, FS2_Open fails to enable post processing at all in the supplied test mission.

Build is r5766.
*.sdr and *.tbl from http://zacam.ueuo.com/fsu/FSU_and-PostProc_Shaders.7z

Excerpt from fs2_open.log is:
======================================================================
Compiling special shader -> post-v.sdr / brightpass-f.sdr ...
  Compiling special shader -> post-v.sdr / blur-f.sdr ...
Fragment shader failed to compile:
ERROR: 0:15: 'array of int' : constructor not supported for type
ERROR: 0:29: 'array of int' : no matching overloaded function found
ERROR: 0:15: 'PixelKernel' : redefinition
ERROR: 0:31: 'array of float' : constructor not supported for type
ERROR: 0:45: 'array of float' : no matching overloaded function found
ERROR: 0:31: 'BlurWeights' : redefinition

ERROR! Unable to create fragment shader!
Post-processing disabled.
Additional InformationDetails of graphics hardware and OpenGL version are:
  OpenGL Vendor : NVIDIA Corporation
  OpenGL Renderer : NVIDIA GeForce 9400M OpenGL Engine
  OpenGL Version : 2.1 NVIDIA-1.6.6
TagsNo tags attached.

Activities

2010-01-03 12:24

 

fs2_open.log (30,329 bytes)

Echelon9

2010-01-03 13:11

developer   ~0011483

This is a known bug that Apple incredibly forgot to implement array initializers in GLSL. You can declare the array, but can't initialize it's values.

Apple Radar Bug #5924418 filed on 2008 May, marked as duplicate of bug #5183554.

A partial workaround for short arrays (<=4 items) is here: http://lists.apple.com/archives/mac-opengl//2009/Feb/msg00017.html

2010-01-03 14:31

 

blur-f.sdr.zip (1,148 bytes)

Echelon9

2010-01-03 14:31

developer   ~0011484

A workaround has been found, please use attached blur-f.sdr if you are on OS X (all hardware).

Echelon9

2010-01-10 07:55

developer   ~0011512

Being tested as part of Antipodes 0000005 http://www.hard-light.net/forums/index.php?topic=67428.0

Issue History

Date Modified Username Field Change
2010-01-03 12:24 Echelon9 New Issue
2010-01-03 12:24 Echelon9 File Added: fs2_open.log
2010-01-03 13:11 Echelon9 Note Added: 0011483
2010-01-03 13:11 Echelon9 Assigned To => Echelon9
2010-01-03 13:11 Echelon9 Status new => confirmed
2010-01-03 14:31 Echelon9 File Added: blur-f.sdr.zip
2010-01-03 14:31 Echelon9 Note Added: 0011484
2010-01-06 13:08 Echelon9 Status confirmed => feedback
2010-01-10 07:55 Echelon9 Note Added: 0011512
2010-01-15 18:06 Echelon9 Status feedback => resolved
2010-01-15 18:06 Echelon9 Resolution open => fixed