Although I don't believe this is the cause of your problem, it looks like you are relying on the std140 block layout in your program, and so you should declare your block in your shader like this instead: