title: OpenGL Motion blur with the accumulation buffer in WxWidgets
body: <p>I'm trying to achieve a motion blur effect in my OpenGL application.</p>
  
  <p>I read somewhere this solution, using the accumulation buffer:</p>
  
  <pre><code> glAccum(GL_MULT, 0.90);
   glAccum(GL_ACCUM, 0.10);
   glAccum(GL_RETURN, 1.0);
  
   glFlush();
  </code></pre>
  
  <p>at the end of the rendering loop.</p>
  
  <p>But nothing happens... What am I missing ?</p>
  
  <h2>Additions after genpfault answer:</h2>
  
  <p>Indeed I did not asked for an accumulation buffer when I initialized my context.</p>
  
  <p>So I tried to pass an array of attributes to the constructor of my <code>wxGLCanvas</code>, as described here: <a href="http://docs.wxwidgets.org/2.6/wx_wxglcanvas.html" rel="nofollow noreferrer">http://docs.wxwidgets.org/2.6/wx_wxglcanvas.html</a> :</p>
  
  <pre><code>int attribList[]={ WX_GL_RGBA , WX_GL_DOUBLEBUFFER , WX_GL_MIN_ACCUM_RED, WX_GL_MIN_ACCUM_GREEN, WX_GL_MIN_ACCUM_BLUE, 0}
  </code></pre>
  
  <p>But all I get is a friendly <em>Seg fault</em>. Does someone understand how to use this ?</p>
  
  <p>(no problems with <code>int attribList[]={ WX_GL_RGBA , WX_GL_DOUBLEBUFFER , 0}</code>)</p>