Skip to content

Commit 0654e24

Browse files
committed
load_buffer to return the ID
1 parent 88ab8d3 commit 0654e24

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/PDL/Graphics/TriD

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ sub load_buffer {
189189
glBindBuffer($target, $id);
190190
# physicalise on nbytes not on second use so nbytes is correct
191191
glBufferData_c($target, $pdl->make_physical->nbytes, $pdl->address_data, $usage);
192+
$id;
192193
}
193194
sub load_idx_buffer {
194195
my ($this, $idname, $pdl, $usage) = @_;

0 commit comments

Comments
 (0)