Apple Sample Code GLES2Sample problems
Apple Sample Code GLES2Sample problems
- Subject: Apple Sample Code GLES2Sample problems
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 15 Sep 2010 16:11:52 +0700
1. When I build the Apple Sample Code GLES2Sample (for iOS 4.1) in Xcode 3.2.4 for the Device with "Run Static Analyzer" checked the analyser tells me about destroyShaders() in Shaders.m that "the value stored to vertShader is never read".
The Apple code is:
/* delete shader resources */
void destroyShaders(GLuint vertShader, GLuint fragShader, GLuint prog)
{
if (vertShader) {
glDeleteShader(vertShader);
vertShader = 0; <---- this is the offending statement.
}
[...]
}
I think that the analyzer is right. But what was the point of Apples code?
2. When I build for the Simulator the analyzer stops working for CGPDFContext.h with the statement: "expected function body after function declarator".
The offending line in CGPDFContext.h is:
CG_EXTERN void CGPDFContextAddDocumentMetadata(CGContextRef context,
CFDataRef metadata) CG_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_0);
Obviously something is messed up, but what can I do to fix this?
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden