Authentication-results: mail-in12.apple.com x-tls.subject="/C=DE/L=Berlin/O=Individual Network Berlin e.V./CN=mail.vr.in-berlin.de/emailAddress=email@hidden"; auth=fail (cipher=AES256-SHA)
Delivered-to: email@hidden
Delivered-to: email@hidden
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
On 30/4/09 1:35 PM, Erik Harg wrote:
bytesToAllocate = texSizeH * texSizeV * sizeof(GLuint);
...
bytesToAllocate = width x height x 4
...
If you only allocate width*height*sizeof(GLuint), either the way you're
doing now, or the way I believe Nicolas suggested
...
aren't you missing the "x 4" part to get enough space for 4 bytes per
pixel? And that you would really need
No, he's not because sizeof(GLuint) is pretty much guaranteed to be >= 4 on current
systems. Unless maybe if he's using OpenGL on an 8-bit micro-controller in which case I
WANT ONE TOO! :-D
Cheers,
/uli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden