Skip to content

Commit 5cf6602

Browse files
Remove other location= calls for legacy.
1 parent e19c3ed commit 5cf6602

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

pygly/examples/renderable_colour_cube.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ def __init__( self ):
203203
self.buffer_attributes[ 'position' ] = VertexAttribute.from_dtype(
204204
self.buffer,
205205
vertices.dtype,
206-
'position',
207-
location = self.shader.attributes[ 'in_position' ]
206+
'position'
208207
)
209208

210209
def draw( self, colour ):

pygly/examples/renderable_cube.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,13 @@ def __init__( self ):
217217
self.buffer_attributes[ 'position' ] = VertexAttribute.from_dtype(
218218
self.buffer,
219219
vertices.dtype,
220-
'position',
221-
location = self.shader.attributes[ 'in_position' ]
220+
'position'
222221
)
223222

224223
self.buffer_attributes[ 'colour' ] = ColourAttribute.from_dtype(
225224
self.buffer,
226225
vertices.dtype,
227-
'colour',
228-
location = self.shader.attributes[ 'in_colour' ]
226+
'colour'
229227
)
230228

231229
def draw( self ):

pygly/examples/renderable_triangle.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,12 @@ def __init__( self ):
181181
self.buffer_attributes[ 'position' ] = VertexAttribute.from_dtype(
182182
self.buffer,
183183
vertices.dtype,
184-
'position',
185-
location = self.shader.attributes[ 'in_position' ]
184+
'position'
186185
)
187186
self.buffer_attributes[ 'colour' ] = ColourAttribute.from_dtype(
188187
self.buffer,
189188
vertices.dtype,
190-
'colour',
191-
location = self.shader.attributes[ 'in_colour' ]
189+
'colour'
192190
)
193191

194192
def draw( self ):

0 commit comments

Comments
 (0)