StopTracking removes the RenderTexture from the global renderTextures slice, which means that it won't be refreshed when a windowing event requires it (which is specifically applicable on Windows).
()
| 34 | // StopTracking removes the RenderTexture from the global renderTextures slice, which means that it won't be refreshed when a windowing event requires it (which |
| 35 | // is specifically applicable on Windows). |
| 36 | func (rt *RenderTexture) StopTracking() { |
| 37 | |
| 38 | for i, slot := range renderTextures { |
| 39 | if rt == slot { |
| 40 | renderTextures[i] = nil |
| 41 | renderTextures = append(renderTextures[:i], renderTextures[i+1:]...) |
| 42 | break |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | } |
| 47 | |
| 48 | func (rt *RenderTexture) Recreate(newW, newH int32) { |
| 49 |