<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<div>Why not create a texture and draw a quad instead of using glDrawPixels (as it is deprecated in gl3)?</div><div><br></div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-size: 11px; ">Reference -- ogl 3 spec -- (http://www.opengl.org/registry/doc/glspec30.20080811.pdf)</span><br></div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica">Under "E.1 Profiles and Deprecated Features of OpenGL 3.0"</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica"><br></p></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica"><span class="Apple-style-span" style="font-size: 8pt; ">"</span><span class="Apple-style-span" style="font-size: 8pt; ">Pixel drawing -<span style="font: 12.0px Helvetica"> </span>DrawPixels<span style="font: 12.0px Helvetica"> </span>and<span style="font: 12.0px Helvetica"> </span>PixelZoom<span style="font: 12.0px Helvetica"> </span>(section<span style="font: 12.0px Helvetica"> </span>3.7.4). However, the<span style="font: 12.0px Helvetica"> </span></span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica">language describing pixel rectangles in section<span style="font: 12.0px Helvetica"> </span>3.7<span style="font: 12.0px Helvetica"> </span>is retained as it is required<span style="font: 12.0px Helvetica"> </span></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica"><span class="Apple-style-span" style="font-size: 8pt; "><br></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica">for<span style="font: 12.0px Helvetica"> </span>TexImage*<span style="font: 12.0px Helvetica"> </span>and<span style="font: 12.0px Helvetica"> </span>ReadPixels.<span style="font: 12.0px Helvetica"> "</span></p><div><br></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 8pt; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 8pt; "><br></span></div></div> - Nick<br><br>> From: adger44@hotmail.com<br>> To: stefan@codeweavers.com; wine-devel@winehq.org<br>> Subject: RE: [PATCH] Fix glReadPixels call from read_from_framebuffer        (re-redux)<br>> Date: Tue, 23 Dec 2008 11:11:08 -0800<br>> <br>> <br>> Thanks for reviewing my patch (it sure makes the SHOGO menu much nicer)<br>> BTW do you know if I need to resubmit my other SHOGO patch ([PATCH] Fix ddraw surface version setting)?<br>> <br>> <br>> Concerning negative pixelzoom and drawpixels on R500<br>> Please file a radar on that (and email the mac-opengl mailing list)<br>> <br>> <br>>  - Nick<br>> <br>> ----------------------------------------<br>>> From: stefan@codeweavers.com<br>>> To: wine-devel@winehq.org<br>>> Subject: RE: [PATCH] Fix glReadPixels call from read_from_framebuffer (re-redux)<br>>> Date: Tue, 23 Dec 2008 13:30:40 +0100<br>>><br>>> This patch looks good.<br>>><br>>> There's one last thing we should check: It seems that this is the only code<br>>> that uses GL_PACK_ROW_LENGTH and friends, so the backup and restore is<br>>> probably not needed. I think for now it is better to add it because I<br>>> suspect the code in surface_download_data most likely depends on the default<br>>> settings without properly controlling them.<br>>><br>>> There's some related driver bug on OSX too(no radar filed yet,<br>>> unfortunately). Using a PBO for glDrawPixels with a negative pixelzoom(wine<br>>> uses -1 for y) breaks at least on my radeon X1600 with MacOS 10.5.5. I<br>>> haven't yet tested it with 10.5.6, but if it is still broken there I have to<br>>> remember to file a bug. It is sort of a follow-up bug to a bug fixed in<br>>> 10.5.5; Before that glPixelZoom and PixelPos were completely ignored with<br>>> PBOs.<br>>><br>>> This bug was on my todo list for a long time by the way. I wanted to fix it,<br>>> got distracted and forgot again :-/<br><br></body>
</html>