summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-10-15 09:38:00 -0600
committerBrian Paul <[email protected]>2015-10-20 12:52:40 -0600
commit31ae52acceb7defc84080e32db6d5b1b0fe2eace (patch)
tree5244d69c957721a53dc4eabb065e079bf07a626d /src/mesa/main/texstore.c
parentc5de38abc9eb71ba89fb1332946ee034e5a0c649 (diff)
st/mesa: check for out-of-memory in st_DrawPixels()
Before, if make_texture() or st_create_texture_sampler_view() failed we silently no-op'd the glDrawPixels. Now, set GL_OUT_OF_MEMORY. This also allows us to un-nest a bunch of code. v2: also check if allocation of sv[1] fails, per Jose. Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/texstore.c')
0 files changed, 0 insertions, 0 deletions