• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Apple Sample Code GLES2Sample problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Apple Sample Code GLES2Sample problems
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Make checkbox in table view uneditable
  • Next by Date: Re: Make checkbox in table view uneditable
  • Previous by thread: Re: Programmatic Cocoa (Interface Builder accessibility)
  • Next by thread: Re: Apple Sample Code GLES2Sample problems
  • Index(es):
    • Date
    • Thread