The fragment shader shouldn't be created if the driver doesn't support integers.
Marek On Mon, Jan 18, 2016 at 11:22 PM, Nicolai Hähnle <nhaeh...@gmail.com> wrote: > From: Fredrik Höglund <fred...@kde.org> > > Create a PIPE_BUFFER sampler view on the pixel-unpack buffer, and draw > the image on the texture with a fragment shader that maps fragment > coordinates to buffer coordinates. > > Modifications by Nicolai Hähnle: > - various cleanups and fixes (e.g. error handling, corner cases) > - split try_pbo_upload into two functions, which will allow code to be > shared with compressed texture uploads > - modify the source format selection to only test for support against > the PIPE_BUFFER target > --- > src/mesa/state_tracker/st_cb_texture.c | 887 > ++++++++++++++++++++++++++++++++- > src/mesa/state_tracker/st_cb_texture.h | 5 + > src/mesa/state_tracker/st_context.c | 2 + > src/mesa/state_tracker/st_context.h | 9 + > 4 files changed, 890 insertions(+), 13 deletions(-) _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev