cleanup
This commit is contained in:
		@ -20,13 +20,8 @@ import wx.glcanvas
 | 
			
		||||
class VideoCanvas(wx.glcanvas.GLCanvas):
 | 
			
		||||
    __slots__ = 'context'
 | 
			
		||||
 | 
			
		||||
    def __init__(self, parent,
 | 
			
		||||
            id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.TAB_TRAVERSAL):
 | 
			
		||||
    def __init__(self, parent, id, pos, size, style):
 | 
			
		||||
        wx.glcanvas.GLCanvas.__init__(self, parent, id = id, pos = pos, size = size, style = style, attribList =
 | 
			
		||||
            wx.glcanvas.GLAttributes().PlatformDefaults().RGBA().FrameBuffersRGB().DoubleBuffer().EndList())
 | 
			
		||||
        self.context = wx.glcanvas.GLContext(self, ctxAttrs =
 | 
			
		||||
            wx.glcanvas.GLContextAttrs().CoreProfile().OGLVersion(4,6).EndList())
 | 
			
		||||
 | 
			
		||||
    def initialize(self):
 | 
			
		||||
        self.SetCurrent(self.context)
 | 
			
		||||
        self.SwapBuffers()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user