Re: Dist Texture
Brian Paul <[email protected]>
| Newsgroups | gmane.comp.graphics.chromium.user |
|---|---|
| Message-ID | <[email protected]> |
Joseph Paris wrote:
> Hey all,
>
> I was trying to get the dist_texture working under cvs and seem to be having a
> problem. All my textures, and the one generated by the dist-texture example,
> seem to be written out incorrectly and are really just a jumbled mess. I was
> wondering if this was still being supported, and what recent version of
> chromium might work with dist textures (i'm hoping not to go backrev too
> far).
I _finally_ got around to looking into this. I think this patch will
fix the problem for you:
diff -c -r1.14 -r1.15
*** state_teximage.c 7 Dec 2005 23:20:34 -0000 1.14
--- state_teximage.c 5 May 2006 22:32:21 -0000 1.15
***************
*** 629,634 ****
--- 629,635 ----
/* compute size of image buffer */
if (is_distrib) {
tl->bytes = crStrlen((char *) pixels) + 1;
+ tl->bytes += crImageSize(format, GL_UNSIGNED_BYTE,
width, height);
}
else if (IsProxyTarget(target)) {
tl->bytes = 0;
-Brian
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642