System Information
Operating system and graphics card
Win7/64 Nvidia GTX670
Blender Version
Broken: 2.72RC eb464ee,
Worked: all versions i tested exhibit this problem.
Short description of error
When running on remote desktop, the nvidia opengl driver will not be used but the microsoft d3d wrapper
GL_VENDOR = Microsoft Corporation
GL_RENDERER = null
GL_VERSION = 1.1.0
Thing is ogl 1.1 does not support 3D textures, blender\gpu\intern\gpu_extentions.c::GPU_texture_create_3D check for 1.2 support and returns NULL since it can't make a 3D texture. so far so good..
however blender\gpu\intern\gpu_extentions.c::GPU_invalid_tex_init tries to create GG.invalid_tex_3D which gets a null value, not a total disaster, apparently nothing using it cause blender works fine, however on exit blender\gpu\intern\gpu_extentions.c::GPU_invalid_tex_free frees it using GPU_texture_free which will deref the null pointer and boom
A quick fix is to add a null check in GPU_texture_free like this
void GPU_texture_free(GPUTexture *tex)
{
if (!tex)
return;
tex->refcount--;
....