File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ def __init__(self):
57
57
def size (self ):
58
58
return (self .width , self .height )
59
59
60
+ @property
61
+ def buffer_size (self ):
62
+ return (self .buffer_width , self .buffer_height )
63
+
60
64
def draw (self , current_time , frame_time ):
61
65
self .set_default_viewport ()
62
66
self .timeline .draw (current_time , frame_time , self .fbo )
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ def __init__(self):
12
12
self .scene = self .get_scene ('lost_empire' )
13
13
14
14
self .fbo = self .ctx .framebuffer (
15
- self .ctx .texture (self .window .size , 4 ),
16
- depth_attachment = self .ctx .depth_texture (self .window .size )
15
+ self .ctx .texture (self .window .buffer_size , 4 ),
16
+ depth_attachment = self .ctx .depth_texture (self .window .buffer_size )
17
17
)
18
18
19
19
self .sampler = self .ctx .sampler (
You can’t perform that action at this time.
0 commit comments