~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychOpenGL/MOGL/wrap/glTexImage2D.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
end
16
16
 
17
17
% Special case NULL-Ptr passed?
18
 
if pixels == 0
19
 
    % We have to allocate a matching dummy matrix for now, until
20
 
    % we implement a proper NULL-Ptr interface in moglcore for this
21
 
    % special case - Ugly ugly ugly...:
22
 
    pixels = zeros(width, height, 2);
23
 
end;
 
18
% if pixels == 0
 
19
%     % We have to allocate a matching dummy matrix for now, until
 
20
%     % we implement a proper NULL-Ptr interface in moglcore for this
 
21
%     % special case - Ugly ugly ugly...:
 
22
%     pixels = zeros(width, height, 2);
 
23
% end;
24
24
 
25
25
moglcore( 'glTexImage2D', target, level, internalformat, width, height, border, format, type, pixels );
26
26