Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No rendering with OpenGL 3 and above #40

Open
rjx-ray opened this issue Jul 24, 2018 · 0 comments
Open

No rendering with OpenGL 3 and above #40

rjx-ray opened this issue Jul 24, 2018 · 0 comments

Comments

@rjx-ray
Copy link

rjx-ray commented Jul 24, 2018

I have an app using ofxCef with of_v0.10.0_vs2017_release, VS2017, Windows 10.
I've been trying to update it to use openGL 4.6 instead of the 2.1 version that OF defaults to.
So I've changed the way that main.cpp starts up my App from

	ofAppGLFWWindow window;
	ofSetupOpenGL(&window, 1024, 768, OF_WINDOW);
	ofApp* p = new ofApp();
	p->cefgui = cefgui;
	ofRunApp(p);

to

	ofGLFWWindowSettings windowSettings;
	windowSettings.setGLVersion(4, 6); 
	windowSettings.setSize(1024, 768);
	windowSettings.resizable = true;
	ofAppGLFWWindow window;	
	shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(windowSettings);
	shared_ptr<ofApp> mainApp(new ofApp());
	mainApp->cefgui = cefgui;
	ofRunApp(mainWindow, mainApp);
	ofRunMainLoop();

Now my app uses ofGLProgrammableRenderer instead of ofGLRenderer and everything works except that the browser window is empty.
If I comment out line 24

#define NOGLDEBUG

in ofxCEFRenderHandler.cpp I see that every call to openGL in ofxCEFRenderHandler::init() results in glGetError() returning 1280 Invalid Enum so there is something pretty fundamentally wrong.

Everything works normally if I set the GL version to 2.1 in the windowSettings, but any version from 3.0 upwards gives me the issue.

If anyone has any insight into this issue I would really appreciate some help

Thanks,
Richard

@rjx-ray rjx-ray mentioned this issue Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant