Clean up simpleCpu code a bit

This commit is contained in:
jcowles 2012-10-09 09:28:27 -07:00
parent a287869e9c
commit 11d2800aef

View File

@ -65,7 +65,7 @@ extern int g_width, g_height, g_frame;
}; };
NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc] NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc]
initWithAttributes:(NSOpenGLPixelFormatAttribute*) attribs]; initWithAttributes:(NSOpenGLPixelFormatAttribute*) attribs];
self = [self initWithFrame:frame pixelFormat:fmt]; self = [self initWithFrame:frame pixelFormat:fmt];
[fmt release]; [fmt release];
@ -112,12 +112,10 @@ extern int g_width, g_height, g_frame;
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
// //
// It seems that some ATI cards fall back to software when rendering // It seems that some ATI cards fall back to software when rendering geometry shaders
// geometry shaders but only *sometimes*. Post this notice so it's obvious // but only *sometimes*. Post this notice so it's obvious that OSD isn't the problem.
// that OSD isn't the problem.
// //
// XXX(jcowles): we should only use vertex and fragment shaders to avoid // XXX(jcowles): we should only use vertex and fragment shaders to avoid this potential confusion
// this potential confusion
// //
std::cout << "--------------------------------------------------------------------------------" << std::endl; std::cout << "--------------------------------------------------------------------------------" << std::endl;
std::cout << "NOTICE: Some Apple hardware runs geometry shaders in software, which will cause" << std::endl; std::cout << "NOTICE: Some Apple hardware runs geometry shaders in software, which will cause" << std::endl;