Wed, 25 May 2022 20:36:34 +0300
Fix pick() picking from weird places on the screen with high DPI scaling
glReadPixels reads data from the frame buffer, which contains data after
high DPI scaling, so any reads to that need to take this scaling into account
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="512" height="512" viewBox="0 0 512 512" version="1.1" id="svg1829" sodipodi:docname="renderstyle-wireframe.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> <metadata id="metadata1835"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> <dc:title>ionicons-v5-h</dc:title> </cc:Work> </rdf:RDF> </metadata> <defs id="defs1833" /> <sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="970" id="namedview1831" showgrid="false" inkscape:zoom="0.38671875" inkscape:cx="23.761988" inkscape:cy="169.69677" inkscape:window-x="0" inkscape:window-y="29" inkscape:window-maximized="1" inkscape:current-layer="svg1829" /> <title id="title1821">ionicons-v5-h</title> <path d="M448,341.37V170.61A32,32,0,0,0,432.11,143l-152-88.46a47.94,47.94,0,0,0-48.24,0L79.89,143A32,32,0,0,0,64,170.61V341.37A32,32,0,0,0,79.89,369l152,88.46a48,48,0,0,0,48.24,0l152-88.46A32,32,0,0,0,448,341.37Z" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px" id="path1823" /> <polyline points="69 153.99 256 263.99 443 153.99" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px" id="polyline1825" /> <line x1="256" y1="463.99" x2="256" y2="263.99" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px" id="line1827" /> <polyline points="69 153.99 256 263.99 443 153.99" style="fill:none;stroke:#000000;stroke-width:32px;stroke-linecap:round;stroke-linejoin:round" id="polyline1825-3" transform="matrix(1,0,0,-1,0.78343484,513.16109)" /> <line x1="256.78345" y1="49.171093" x2="256.78345" y2="249.17108" style="fill:none;stroke:#000000;stroke-width:32px;stroke-linecap:round;stroke-linejoin:round" id="line1827-6" /> </svg>