Skip to content

Commit

Permalink
Texture: Verify physical texture size after resize
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Jul 21, 2021
1 parent 3258ae1 commit 32248db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit2/test_opengl_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,8 @@ def test_byte_size(ctx):
def test_resize(ctx):
tex = ctx.texture((100, 100), components=4)
assert tex.size == (100, 100)
assert len(tex.read()) == 100 * 100 * 4

tex.resize((200, 200))
assert tex.size == (200, 200)
assert len(tex.read()) == 200 * 200 * 4

0 comments on commit 32248db

Please sign in to comment.