| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi, when updating an Alpha texture with glTexSubImage2D there are some strange effects (the right most columns are updated wrong). glTexSubImage2D(GL_TEXTURE_2D, 0, // level 0, // xoffset 0, // yoffset 258, // width, it woks for 256, 260, etc but not for 258! 258, // height, it woks for 256, 260, etc but not for 258! GL_ALPHA, // format GL_FLOAT, // type (GLvoid*)sourcePointer); does not work! The bug depends on the size of the texture update. using a power of two for texture width and height will eliminate the bug, however this exactly is the reason we have to use glTexSubImage2D in updating tiles. Any hints and workaround is very much appreciated, as our application has to make string use of the glTexSubImage2D functionality. best regards Heimo |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.