jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use texture mode with ofxImGui

prisonerjohn opened this issue · comments

If I run an app that has both ofxOMXPlayer and ofxImGui in it, it looks like the video player texture gets taken over by the imgui texture, because I just see a bunch of glyphs on screen.
img_20180510_130648

I have a test app ready here if you want to test (you can just put that in "myApps"): https://drive.google.com/open?id=1ocJtu0n5T0R54GxsUHwfktbabQXKclTH

Any idea what could be happening? I think it's probably a texture reference getting overwritten, but not sure where that would be exactly.

This works for some reason

bool guiStarted = false;
void ofApp::draw(){
	
	if(ofGetFrameNum() == 1)
		{
			gui.setup();
			guiStarted = true;

		}
  if(guiStarted) {
  gui.begin();....

That's odd... I thought maybe gui.setup() has to get called after loading a video but that's what's already happening in setup().