- Home /
Texture3D does not work after alt+tab
I work with volume rendering and use Texture3D as my volume data storage. I upload volume data at the start:
m_VolumeTex = new Texture3D(m_Width, m_Height, m_Depth, TextureFormat.RGBAFloat, false);
m_VolumeTex.wrapMode = TextureWrapMode.Clamp;
m_VolumeTex.filterMode = FilterMode.Bilinear;
LoadVolumeFromUnity(m_VolumeTex.GetNativeTexturePtr(), s, loadFile, m_Width, m_Height, m_Depth, debug);
LoadVolumeFromUnity is a C++/OpenGL plugin which essentially preforms:
glBindTexture(GL_TEXTURE_3D, texVolume);
glTextureSubImage3D(texVolume, 0, 0,0,0,width,height,depth,GL_RGBA, GL_FLOAT, data.data());
Application works as intended at the start. However when I alt+tab from the edit and come back, application runs but my RayCast shader seems not to be able to sample Texture anymore. I have tried to call VolumeLoad function from OnApplicationFocus() however this did not solve the problem...
Any idea why this can occur and what could I try to fix the issue?
Your answer
Follow this Question
Related Questions
How can I get the maximum supported aniso level? 0 Answers
Assign Texture To Material Unity 4.6 1 Answer
Combine Shaders 0 Answers
ES2.0 Diffuse Shader? 0 Answers
Why is my UV'd texture displaying wrapped with the wrong scale? 0 Answers