mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 03:00:30 +01:00
minor hack to allow 1D textures to work
This commit is contained in:
parent
bfcc337e38
commit
d16b4bc32a
1 changed files with 2 additions and 1 deletions
|
|
@ -711,7 +711,8 @@ sp_get_samples_1d(struct tgsi_sampler *sampler,
|
|||
float rgba[NUM_CHANNELS][QUAD_SIZE])
|
||||
{
|
||||
static const unsigned faces[4] = {0, 0, 0, 0};
|
||||
sp_get_samples_2d_common(sampler, s, NULL, NULL, lodbias, rgba, faces);
|
||||
static const float tzero[4] = {0, 0, 0, 0};
|
||||
sp_get_samples_2d_common(sampler, s, tzero, NULL, lodbias, rgba, faces);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue