summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl/x11
diff options
context:
space:
mode:
authorOlivier Galibert <[email protected]>2012-07-19 18:55:14 +0200
committerBrian Paul <[email protected]>2012-07-19 13:19:14 -0600
commitfbe3fa74e5cdaf02f3738da7d6052e1f1fd7bbf2 (patch)
treec80eb020d0163a873da477fd71779ef1ed61b3ca /src/gallium/state_trackers/egl/x11
parentd7522ed13052a3d30bc4faedce04685263f57933 (diff)
softpipe: Fix segfault with fbo-cubemap.
The cube sampler generates two-dimensional texture coordinates and hence passes NULL for the array for the third one. The actual 2D sampler, lower in the pipe, knew not to used that array since it didn't need it. But the samplers have become single-texel and the coordinate array dereference has been moved up one step, to a level where the code does not know only two coordinates are used. Hence the segfault. The simplest fix by far is to add a third dummy coordinate array in the call to the next pipe step, which will be dereferenced to an harmless 0 which then will be happily ignored by the sampler. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=52250 Signed-off-by: Olivier Galibert <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl/x11')
0 files changed, 0 insertions, 0 deletions