setTexture resets all last* values from basicShader to a new default value (255)
(texture *gl.Texture)
| 287 | |
| 288 | // setTexture resets all last* values from basicShader to a new default value (255) |
| 289 | func (s *basicShader) setTexture(texture *gl.Texture) { |
| 290 | s.lastTexture = texture |
| 291 | s.lastMinFilter = 255 |
| 292 | s.lastMagFilter = 255 |
| 293 | s.lastRepeating = 255 |
| 294 | } |
| 295 | |
| 296 | func (s *basicShader) flush() { |
| 297 | // If we haven't rendered anything yet, no point in flushing. |