Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL error on first rendering in -[QCOpenGLContext willPushRenderState:]



Be careful when using QC under GC, as since it relies on many other graphics technologies and does high-performance media processing and the later is not really GC friendly, you will likely end up with poor performances.

On Nov 22, 2007, at 1:56 AM, Raphael Sebbe wrote:

For reference,

I managed to get the app working without GC until the first few
renderings (crash would occur just after), then could break on error
in OpenGL profiler.

The error is due to this:
glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_WRAP_S, GL_REPEAT)


which apparently is a bad combination (yet it does work, texture
repeating), detected by QC. I changed it to GL_TEXTURE_2D.

Thanks,

Raphael

On Nov 18, 2007 7:39 PM, Raphael Sebbe <email@hidden> wrote:
Hi,

Well, this is not an option for me, OpenGL Profiler is broken for
garbage collected apps, mine won't work without GC. Do you have
another option to track that error ?

Thank you

Raphael


On Nov 16, 2007 5:50 PM, Pierre-Olivier Latour <email@hidden> wrote:
Run your app under OpenGL Profiler with "break on error" and you will see
which call fails


Make sure you are not doing invalid GL stuff before calling QC



On Nov 16, 2007, at 2:17 AM, Raphael Sebbe@Google wrote:


Hi,

I've set up an OpenGL view in which I render using a QCRenderer. The first
time I render it, I get this error in the log and nothing renders:
*** OpenGL error 0x0500 (invalid enumerant) in function "- [QCOpenGLContext
willPushRenderState:]"


There are no more errors from the second rendering and after.

This is a pretty simple composition taking CIImage and NSBitmapImageRep as
inputs.


Any advice on this ?

Thanks,

Raphael _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden


This email sent to email@hidden


________________________________ Pierre-Olivier Latour - email@hidden Technologist - Apple, Inc.






________________________________ Pierre-Olivier Latour - email@hidden Technologist - Apple, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >OpenGL error on first rendering in -[QCOpenGLContext willPushRenderState:] (From: Raphael Sebbe@Google <email@hidden>)
 >Re: OpenGL error on first rendering in -[QCOpenGLContext willPushRenderState:] (From: Pierre-Olivier Latour <email@hidden>)
 >Re: OpenGL error on first rendering in -[QCOpenGLContext willPushRenderState:] (From: "Raphael Sebbe" <email@hidden>)
 >Re: OpenGL error on first rendering in -[QCOpenGLContext willPushRenderState:] (From: "Raphael Sebbe" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.