swehner / foos

Instant replay system for foosball table
GNU General Public License v3.0
169 stars 34 forks source link

TypeError with pi3d v2.16 and newer #44

Closed swehner closed 7 years ago

swehner commented 7 years ago

Looks like the modified OutlineFont has issues with pi3d v2.16 and newer:

Traceback (most recent call last):
  File "/home/pi/foos/foos/ui/ui.py", line 509, in run
    self.goal_time.draw()
  File "/home/pi/foos/foos/ui/anim.py", line 211, in draw
    self.s.draw()
  File "/usr/local/lib/python3.4/dist-packages/pi3d/Shape.py", line 212, in draw
    b.draw(self, self.M, self.unif, shader, txtrs, ntl, shny)
  File "/usr/local/lib/python3.4/dist-packages/pi3d/Buffer.py", line 292, in draw
    assert texture.tex(), 'There was an empty texture in your Buffer.'
  File "/usr/local/lib/python3.4/dist-packages/pi3d/Texture.py", line 145, in tex
    self.load_opengl()
  File "/usr/local/lib/python3.4/dist-packages/pi3d/util/Loadable.py", line 42, in load_opengl
    self._load_opengl()
  File "/usr/local/lib/python3.4/dist-packages/pi3d/Texture.py", line 263, in _load_opengl
    self.update_ndarray()
  File "/usr/local/lib/python3.4/dist-packages/pi3d/Texture.py", line 282, in update_ndarray
    opengles.glBindTexture(GL_TEXTURE_2D, self._tex)