Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Nov 15, 2024
1 parent e78e437 commit acc8bc8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/gui_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ def __init__(self, title):
glfw.window_hint(glfw.RESIZABLE, True)

self.window = glfw.create_window(640, 480, title, None, None)
self.context = GPUCanvasContext(self)

def get_present_methods(self):
"""get window and display id, includes some triage to deal with OS differences"""
return get_glfw_present_methods(self.window)
self.context = GPUCanvasContext(self, get_glfw_present_methods(self.window))

def get_physical_size(self):
"""get framebuffer size in integer pixels"""
Expand Down

0 comments on commit acc8bc8

Please sign in to comment.