Quantcast
Viewing all articles
Browse latest Browse all 12131

Android + GearVR + Multi-Threaded

I am trying to build a native (C++) plugin for the GearVR. But even a very easy plugin seems to fail when "Virtual Reality Supported" and "Multi-Threaded" is set. The native plugin is pretty much the following code:

void UnityRenderEvent(int textureId)
{
glBindTexture(GL_TEXTURE_2D, textureId);
FillTextureFromCode(data); // fill colors
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, data);
glBindTexture(GL_TEXTURE_2D, 0);
}...

Android + GearVR + Multi-Threaded

Viewing all articles
Browse latest Browse all 12131

Trending Articles