Fix threading issues of viewport rendering when using movies/generated images
[blender.git] / source / blender / render / extern / include / RE_engine.h
index 64135a16f5d3a5702c91a9fd8a3b18f8ec1bc6c8..b687acae1f7a8e5923cf95de4190bad0b092de83 100644 (file)
@@ -62,6 +62,7 @@ struct Scene;
 #define RE_ENGINE_DO_UPDATE            8
 #define RE_ENGINE_RENDERING            16
 #define RE_ENGINE_HIGHLIGHT_TILES      32
+#define RE_ENGINE_USED_FOR_VIEWPORT    64
 
 extern ListBase R_engines;
 
@@ -105,6 +106,7 @@ typedef struct RenderEngine {
 } RenderEngine;
 
 RenderEngine *RE_engine_create(RenderEngineType *type);
+RenderEngine *RE_engine_create_ex(RenderEngineType *type, int use_for_viewport);
 void RE_engine_free(RenderEngine *engine);
 
 void RE_layer_load_from_file(struct RenderLayer *layer, struct ReportList *reports, const char *filename, int x, int y);