[fluxus] plt commits

nik gaffney nik at fo.am
Sun Dec 31 03:24:57 PST 2006


> looks like most of the stuff compiles on osx, with the exception of
> libfluxus/src/GLSLShader (without this file, libfluxus, libfluxphysics and the
> fluxus-engine can build, but suffer from subsequent linker errors,
> unsurprisingly.. .)

it compiles with the following patch, but ive no idea what the implications of
these changes are.. .

Index: GLSLShader.cpp
===================================================================
RCS file: /sources/fluxus/fluxus/libfluxus/src/GLSLShader.cpp,v
retrieving revision 1.5
diff -c -r1.5 GLSLShader.cpp
*** GLSLShader.cpp	13 Aug 2006 15:31:22 -0000	1.5
--- GLSLShader.cpp	31 Dec 2006 11:12:41 -0000
***************
*** 131,141 ****

  	glLinkProgram(m_Program);

! 	int status = GL_FALSE;
  	glGetProgramiv(m_Program, GL_LINK_STATUS, &status);
  	if(status != GL_TRUE)
  	{
! 		int size = 0;
  		char log[1024];
  		glGetProgramInfoLog(m_Program, 1024, &size, log);
  		cout<<log<<endl;
--- 131,141 ----

  	glLinkProgram(m_Program);

! 	GLint status = GL_FALSE;
  	glGetProgramiv(m_Program, GL_LINK_STATUS, &status);
  	if(status != GL_TRUE)
  	{
! 		GLsizei size = 0;
  		char log[1024];
  		glGetProgramInfoLog(m_Program, 1024, &size, log);
  		cout<<log<<endl;
***************
*** 170,180 ****
  		glShaderSource(shader, 1, (const char**)&code, NULL);
  		glCompileShader(shader);

! 		int status = GL_FALSE;
  		glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
  		if(status != GL_TRUE)
  		{	
! 			int size = 0;
  			char log[1024];

  			glGetShaderInfoLog(shader, 1024, &size, log);
--- 170,180 ----
  		glShaderSource(shader, 1, (const char**)&code, NULL);
  		glCompileShader(shader);

! 		GLint status = GL_FALSE;
  		glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
  		if(status != GL_TRUE)
  		{	
! 			GLsizei size = 0;
  			char log[1024];

  			glGetShaderInfoLog(shader, 1024, &size, log);




More information about the Fluxus mailing list