@@ -53,7 +53,6 @@ def __init__(self):
5353 self .material_system = None
5454 self .width = None
5555 self .height = None
56- self .gl_interop = None
5756 self .engine_type = None
5857
5958 # Here we'll store some useful blender data, which could be required to do some export
@@ -97,7 +96,6 @@ def __init__(self):
9796 def init (self , context_flags , context_props ):
9897 self .context = self ._Context (context_flags , context_props )
9998 self .material_system = pyrpr .MaterialSystem (self .context )
100- self .gl_interop = pyrpr .CREATION_FLAGS_ENABLE_GL_INTEROP in context_flags
10199
102100 # context settings
103101 self .set_parameter (pyrpr .CONTEXT_X_FLIP , False )
@@ -159,9 +157,6 @@ def get_frame_buffer(self, aov_type=None):
159157 if aov_type is not None :
160158 return self .frame_buffers_aovs [aov_type ]['res' ]
161159
162- if self .gl_interop :
163- return self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['gl' ]
164-
165160 if self .composite :
166161 return self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['composite' ]
167162
@@ -186,13 +181,8 @@ def enable_aov(self, aov_type):
186181 fbs ['aov' ] = pyrpr .FrameBuffer (self .context , self .width , self .height )
187182 fbs ['aov' ].set_name ("%d_aov" % aov_type )
188183 self .context .attach_aov (aov_type , fbs ['aov' ])
189- if aov_type == pyrpr .AOV_COLOR and self .gl_interop :
190- fbs ['res' ] = pyrpr .FrameBufferGL (self .context , self .width , self .height )
191- fbs ['gl' ] = fbs ['res' ] # resolved and gl framebuffers are the same
192- fbs ['gl' ].set_name ("%d_gl" % aov_type )
193- else :
194- fbs ['res' ] = pyrpr .FrameBuffer (self .context , self .width , self .height )
195- fbs ['res' ].set_name ("%d_res" % aov_type )
184+ fbs ['res' ] = pyrpr .FrameBuffer (self .context , self .width , self .height )
185+ fbs ['res' ].set_name ("%d_res" % aov_type )
196186
197187 self .frame_buffers_aovs [aov_type ] = fbs
198188
@@ -300,11 +290,6 @@ def create_filter_composite(self):
300290 self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['composite' ] = pyrpr .FrameBuffer (
301291 self .context , self .width , self .height )
302292 self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['composite' ].set_name ('default_composite' )
303- if self .gl_interop :
304- # splitting resolved and gl framebuffers
305- self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['res' ] = pyrpr .FrameBuffer (
306- self .context , self .width , self .height )
307- self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['res' ].set_name ('default_res' )
308293 # Composite calculation elements frame buffers
309294 color = self .create_composite (pyrpr .COMPOSITE_FRAMEBUFFER , {
310295 'framebuffer.input' : self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['res' ]
@@ -347,9 +332,6 @@ def create_filter_composite(self):
347332
348333 def _disable_catchers (self ):
349334 self .composite = None
350- if self .gl_interop :
351- # set resolved framebuffer be the same as gl
352- self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['res' ] = self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['gl' ]
353335 del self .frame_buffers_aovs [pyrpr .AOV_COLOR ]['composite' ]
354336
355337 def sync_auto_adapt_subdivision (self , width = 0 , height = 0 ):
@@ -613,8 +595,6 @@ def apply_filters(self):
613595 if self .composite :
614596 color_aov = self .frame_buffers_aovs [pyrpr .AOV_COLOR ]
615597 self .composite .compute (color_aov ['composite' ])
616- if self .gl_interop :
617- color_aov ['composite' ].resolve (color_aov ['gl' ])
618598
619599
620600class RPRContext2 (RPRContext ):
0 commit comments