File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,7 @@ def __init__( self ):
203
203
self .buffer_attributes [ 'position' ] = VertexAttribute .from_dtype (
204
204
self .buffer ,
205
205
vertices .dtype ,
206
- 'position' ,
207
- location = self .shader .attributes [ 'in_position' ]
206
+ 'position'
208
207
)
209
208
210
209
def draw ( self , colour ):
Original file line number Diff line number Diff line change @@ -217,15 +217,13 @@ def __init__( self ):
217
217
self .buffer_attributes [ 'position' ] = VertexAttribute .from_dtype (
218
218
self .buffer ,
219
219
vertices .dtype ,
220
- 'position' ,
221
- location = self .shader .attributes [ 'in_position' ]
220
+ 'position'
222
221
)
223
222
224
223
self .buffer_attributes [ 'colour' ] = ColourAttribute .from_dtype (
225
224
self .buffer ,
226
225
vertices .dtype ,
227
- 'colour' ,
228
- location = self .shader .attributes [ 'in_colour' ]
226
+ 'colour'
229
227
)
230
228
231
229
def draw ( self ):
Original file line number Diff line number Diff line change @@ -181,14 +181,12 @@ def __init__( self ):
181
181
self .buffer_attributes [ 'position' ] = VertexAttribute .from_dtype (
182
182
self .buffer ,
183
183
vertices .dtype ,
184
- 'position' ,
185
- location = self .shader .attributes [ 'in_position' ]
184
+ 'position'
186
185
)
187
186
self .buffer_attributes [ 'colour' ] = ColourAttribute .from_dtype (
188
187
self .buffer ,
189
188
vertices .dtype ,
190
- 'colour' ,
191
- location = self .shader .attributes [ 'in_colour' ]
189
+ 'colour'
192
190
)
193
191
194
192
def draw ( self ):
You can’t perform that action at this time.
0 commit comments