diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 7eb08cbabac..e9f33d2fbd3 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -350,7 +350,7 @@ static int load_tex(Brush *br, ViewContext *vc, float zoom, bool col, bool prima eGPUTextureFormat format = col ? GPU_RGBA8 : GPU_R8; target->overlay_texture = GPU_texture_create_2d( "paint_cursor_overlay", size, size, 1, format, NULL); - GPU_texture_update(target->overlay_texture, GPU_DATA_UNSIGNED_BYTE, buffer); + GPU_texture_update(target->overlay_texture, GPU_DATA_UBYTE, buffer); if (!col) { GPU_texture_swizzle_set(target->overlay_texture, "rrrr"); @@ -358,7 +358,7 @@ static int load_tex(Brush *br, ViewContext *vc, float zoom, bool col, bool prima } if (init) { - GPU_texture_update(target->overlay_texture, GPU_DATA_UNSIGNED_BYTE, buffer); + GPU_texture_update(target->overlay_texture, GPU_DATA_UBYTE, buffer); } if (buffer) { @@ -469,13 +469,13 @@ static int load_tex_cursor(Brush *br, ViewContext *vc, float zoom) if (!cursor_snap.overlay_texture) { cursor_snap.overlay_texture = GPU_texture_create_2d( "cursor_snap_overaly", size, size, 1, GPU_R8, NULL); - GPU_texture_update(cursor_snap.overlay_texture, GPU_DATA_UNSIGNED_BYTE, buffer); + GPU_texture_update(cursor_snap.overlay_texture, GPU_DATA_UBYTE, buffer); GPU_texture_swizzle_set(cursor_snap.overlay_texture, "rrrr"); } if (init) { - GPU_texture_update(cursor_snap.overlay_texture, GPU_DATA_UNSIGNED_BYTE, buffer); + GPU_texture_update(cursor_snap.overlay_texture, GPU_DATA_UBYTE, buffer); } if (buffer) { |