We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e1bca commit 9bf601bCopy full SHA for 9bf601b
1 file changed
lib/PDL/Graphics/TriD/GL.pm
@@ -188,6 +188,7 @@ sub load_idx_buffer {
188
sub load_texture {
189
my ($this, $idname, $pdl, $iformat, $x, $y, $format, $type, $target) = @_;
190
PDL::barf ref($this)."::load_texture: undef ndarray" if !defined $pdl;
191
+ PDL::barf ref($this)."::load_texture: undef \$x/\$y" if grep !defined, $x, $y;
192
$type //= GL_FLOAT;
193
$target //= GL_TEXTURE_2D;
194
# ||= as only need one, even if re-setup
0 commit comments