Blender Git Commit Log

Git Commits -> Revision b1c025d

Revision b1c025d by Clément Foucault (master)
March 25, 2018, 18:06 (GMT)
GPUTexture: Small refactor.

This includes a few modification:
- The biggest one is call glActiveTexture before doing any call to
glBindTexture for rendering purpose (uniform value depends on it).
This is also better to know what's going on when rendering UI. So if
there is missing UI elements because of this commit look for this first.
This allows us to have "less calls" to glActiveTexture (I did not
measure the final count) and less checks inside GPU_texture.

- Remove use of GL_TEXTURE0 as a uniform value in a few places.

- Be more strict and use BLI_assert for bad usage of GPU_texture functions.

- Disable filtering for integer and stencil textures (not supported by
OGL specs).

- Replace bools inside GPUTexture by a bitflag supporting more options to
identify texture types.

Commit Details:

Full Hash: b1c025d1e8dd3a26e66740eab102814da76c06bf
Parent Commit: 879eabe
Lines Changed: +120, -127

14 Modified Paths:

/source/blender/blenfont/intern/blf_glyph.c (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager_texture.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_icons.c (+1, -0) (Diff)
/source/blender/editors/screen/glutil.c (+1, -0) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+3, -1) (Diff)
/source/blender/editors/space_clip/clip_draw.c (+2, -1) (Diff)
/source/blender/editors/space_sequencer/sequencer_draw.c (+2, -1) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+0, -2) (Diff)
/source/blender/gpu/GPU_texture.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+99, -116) (Diff)
/source/blender/gpu/intern/gpu_viewport.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_draw.c (+0, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+3, -1) (Diff)
/source/blender/windowmanager/intern/wm_stereo.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021