Added missing resource disposal code; continued work on OpenGL/CL interop