| If you are using max2d, after resizing the viewport (once you get that working, if it isn't already), use the setviewport command and resize the viewport to prevent weird rendering problems. 
 Here's what i'm using:
 
 
 
Type LayerCanvas Extends wxGLCanvas
	Field Timer:wxTimer
	Method OnInit() 
		ConnectAny(wxEVT_TIMER, OnTick) 
		connectany(wxEVT_SIZE, OnSize) 
		timer = wxTimer.CreateTimer(Self) 
		timer.Start(333) 
		
	End Method
	
	Function OnSize(Event:wxEvent) 
		Local w:Int, H:Int
		LayerCanvas(event.parent).GetSize(w, h) 
		LayerCanvasWidth = w
		LayerCanvasHeight = h
		LayerCanvas(event.parent).Refresh() 
	End Function
	
	Method OnPaint(event:wxPaintEvent) 
		SetGraphics (CanvasGraphics2D(Self)) 
		SetViewport(0, 0, LayerCanvasWidth, LayerCanvasHeight) 
		Cls
			RenderLayerWindow() 
		Flip
	End Method
	
	Function OnTick(Event:wxEvent) 
		LayerCanvas(event.parent).Refresh() 
	End Function
End Type
 
 No problems at all.
 
 
 |