Macbook pro keeps getting black screen
Recently this just happened to my Macbook Pro retina (mid 2012). while i'm using it, it just suddenly goes black screen. The computer is still on, i can hear the fan still going and the capslock key still turns green when its pressed, so i'm sure it's still on and the screen just went black
And the only thing i could do is force shutdown by holding down power button. When i switch it on, sometimes it still has a black screen with the chime played. sometimes i let it rest for a bit then switch it on, it works. But sooner or later it will turn black screen again.
I've tried some of the solutions i read online which is reset PRAM and PMU. It did switch on my Macbook without a blackscreen but still it will turn blackscreen after few mintues of using.
Also i've noticed if i switch on game like Dirt 3, it will crash to a black screen. I wonder if its GPU failure.
Hope i could get some answers from you guys, so that i know what exactly to fix. Cheers.
MacBook Pro with Retina display, OS X Yosemite (10.10)