Fix out-of-bounds dim access in opengl runtime
Fix out-of-bounds dim access in opengl runtime

Former-commit-id: 99be5d3b7b2f05a88181bcecd4603837a410d027
Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide