Texture Rectangles (EXT or ARB) do not support the GL_REPEAT wrap mode. Refer to the specification here:
http://www.opengl.org/registry/specs/ARB/texture_rectangle.txt
"
...
1) Should rectangular textures simply be an extension to the 2D texture target that allows non-power-of-two widths and heights? No. The rectangular texture is an entirely new texture target type called GL_TEXTURE_RECTANGLE_ARB. This is because while the texture rectangle target relaxes the power-of-two dimensions requirements of the texture 2D target, it also has limitations such as the absence of both mipmapping and the GL_REPEAT and GL_MIRRORED_REPEAT wrap modes. Additionally, rectangular textures do not use [0..1] normalized texture coordinates.
...
"
Hope that helps,
Michel
--
Michel Castejon
OpenGL / Core Image
Apple Inc.






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 PROTECTED]> 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 PROTECTED]> 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 [EMAIL PROTECTED] 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 protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/pol%40apple.com

This email sent to [EMAIL PROTECTED]


________________________________
Pierre-Olivier Latour - [EMAIL PROTECTED]
Technologist - Apple, Inc.





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

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to