… | … | ||
---|---|---|---|
264 | } | 264 | } |
265 | } | 265 | } |
266 | 266 | ||
267 | $self->{s} = $self->{w} / $tw; | 267 | $self->{s} = $self->{w} / $tw; |
268 | $self->{t} = $self->{h} / $th; | 268 | $self->{t} = $self->{h} / $th; |
269 | |||
270 | glGetError; | ||
269 | 271 | ||
270 | $self->{name} ||= (glGenTextures 1)->[0]; | 272 | $self->{name} ||= (glGenTextures 1)->[0]; |
271 | 273 | ||
272 | glBindTexture GL_TEXTURE_2D, $self->{name}; | 274 | glBindTexture GL_TEXTURE_2D, $self->{name}; |
273 | 275 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |