Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def __init__(
double_buffer=True,
sample_buffers=1,
samples=samples,
depth_size=24,
stencil_size=8,
red_size=8,
green_size=8,
blue_size=8,
alpha_size=8,
)
display = pyglet.canvas.get_display()
screen = display.get_default_screen()
Expand All @@ -138,10 +144,24 @@ def __init__(
minor_version=gl_version[1],
opengl_api=gl_api,
double_buffer=True,
depth_size=24,
stencil_size=8,
red_size=8,
green_size=8,
blue_size=8,
alpha_size=8,
)
try:
super().__init__(width=width, height=height, caption=title,
resizable=resizable, config=config, vsync=vsync, visible=visible, style=style)
super().__init__(
width=width,
height=height,
caption=title,
resizable=resizable,
config=config,
vsync=vsync,
visible=visible,
style=style,
)
self.register_event_type('on_update')
except pyglet.window.NoSuchConfigException:
raise NoOpenGLException("Unable to create an OpenGL 3.3+ context. "
Expand Down