Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
broozar's avatar
broozar
Honored Guest
10 years ago

[0.8 PC GL] copy texture to TextureSet

hi all,

back in the 0.5 days before textureSets, one could simply set one's own textureID to eyeTex.OGL.TexId and call it a day. Could anyone please offer a code snippet/workflow description of how to do something similar with 0.8 in OpenGL?

what I tried:
- glBindTexture (my own texture (GLuint handle) with a combined left/right image)
- get ovrGLTexture* tex = (ovrGLTexture*)&pTextureSet->Textures[pTextureSet->CurrentIndex]
- glCopyTexSubImage2D (target tex->OGL.TexID)

regards

30 Replies