Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/pipeline.cc
| Show First 20 Lines • Show All 920 Lines • ▼ Show 20 Lines | |||||
| void *RE_gl_context_get(Render *re) | void *RE_gl_context_get(Render *re) | ||||
| { | { | ||||
| return re->gl_context; | return re->gl_context; | ||||
| } | } | ||||
| void *RE_gpu_context_get(Render *re) | void *RE_gpu_context_get(Render *re) | ||||
| { | { | ||||
| if (re->gpu_context == nullptr) { | if (re->gpu_context == nullptr) { | ||||
| re->gpu_context = GPU_context_create(nullptr); | re->gpu_context = GPU_context_create(NULL, re->gl_context); | ||||
| } | } | ||||
| return re->gpu_context; | return re->gpu_context; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Render & Composite Scenes (Implementation & Public API) | /** \name Render & Composite Scenes (Implementation & Public API) | ||||
| ▲ Show 20 Lines • Show All 1,727 Lines • Show Last 20 Lines | |||||