OpenGL error 1286

Hi,

I'm getting the following message error:

Framebuffer error (unknown error), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help. OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation OpenGL error 1286 at top endDraw(): invalid framebuffer operation

This is following a run of the following code:

PShape rectangle;

void setup() {
  size(640,360,P2D);
  frameRate(30);
  rectangle = createShape(RECT,-50,-25,100,50);
}

void draw() {
  background(51);

  if (mousePressed) {
  translate(mouseX,mouseY);
  shape(rectangle);
  }
}

I have Processing version 2.2.1 My system is Windows 7, 64-bit, with an Intel Graphic Card, but also with a GeForce GT 525M.

I read some of the related posts online and in this forum, but it seems there is no solution for me... I tried checking if the GeForce is up to date, it is. (also the Intel).

I also went into the NVIDIA control panel and changed the processing.exe to work from the NVIDIA card...

No luck, I still get the error.

What should I do? Thanks.

Comments

  • Have you tried right-clicking processing.exe or your shortcut to it? There should be an option available labeled 'Run with graphics processor > High performance NVIDIA processor'. This should apply to sub-processes of the IDE as well (running sketches). I don't know if anyone searches for these issues by proper names, but this is called NVidia Optimus.

  • Thanks. Problem solved.

Sign In or Register to comment.