Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Show First 20 Lines • Show All 6,244 Lines • ▼ Show 20 Lines | ibuf = ED_view3d_draw_offscreen_imbuf(depsgraph, | ||||
| v3d_copy.shading.type, | v3d_copy.shading.type, | ||||
| &v3d_copy, | &v3d_copy, | ||||
| region, | region, | ||||
| w, | w, | ||||
| h, | h, | ||||
| IB_rect, | IB_rect, | ||||
| R_ALPHAPREMUL, | R_ALPHAPREMUL, | ||||
| NULL, | NULL, | ||||
| false, | |||||
| NULL, | NULL, | ||||
| err_out); | err_out); | ||||
| if (!ibuf) { | if (!ibuf) { | ||||
| /* Mostly happens when OpenGL offscreen buffer was failed to create, */ | /* Mostly happens when OpenGL offscreen buffer was failed to create, */ | ||||
| /* but could be other reasons. Should be handled in the future. nazgul */ | /* but could be other reasons. Should be handled in the future. nazgul */ | ||||
| BKE_reportf(op->reports, RPT_ERROR, "Failed to create OpenGL off-screen buffer: %s", err_out); | BKE_reportf(op->reports, RPT_ERROR, "Failed to create OpenGL off-screen buffer: %s", err_out); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| ▲ Show 20 Lines • Show All 534 Lines • Show Last 20 Lines | |||||