mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
mesa: minor clean-up in _mesa_texstore_srgb8()
This commit is contained in:
parent
722b761564
commit
0f91e4461f
1 changed files with 1 additions and 3 deletions
|
|
@ -3058,16 +3058,14 @@ GLboolean
|
|||
_mesa_texstore_srgb8(TEXSTORE_PARAMS)
|
||||
{
|
||||
const struct gl_texture_format *newDstFormat;
|
||||
StoreTexImageFunc store;
|
||||
GLboolean k;
|
||||
|
||||
ASSERT(dstFormat == &_mesa_texformat_srgb8);
|
||||
|
||||
/* reuse normal rgb texstore code */
|
||||
newDstFormat = &_mesa_texformat_rgb888;
|
||||
store = _mesa_texstore_rgb888;
|
||||
|
||||
k = store(ctx, dims, baseInternalFormat,
|
||||
k = _mesa_texstore_rgb888(ctx, dims, baseInternalFormat,
|
||||
newDstFormat, dstAddr,
|
||||
dstXoffset, dstYoffset, dstZoffset,
|
||||
dstRowStride, dstImageOffsets,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue