v72B : opengl20, iOS, compiler error

Monkey Forums/Monkey Bug Reports/v72B : opengl20, iOS, compiler error

AdamRedwoods(Posted 2013) [#1]
void _glShaderSource( int shader, String source ){
	String::CString<char> cstr=source.ToCString<char>();
	char *buf[1];
	buf[0]=cstr;
	glShaderSource( shader,1,(const GLchar**)buf,0 );
}

buf[0]=cstr; is an incompatible type. may be just me, i'm on xcode 4.6.x.

this seems to fix it
const char *buf[1];
buf[0]=&cstr[0];



marksibly(Posted 2013) [#2]
You should only need the const char *buf[1] line.

I've pushed this fix to the develop branch, along with a fix for LoadImageData.