is it able to upgrade opengl version for AMD redeon r3 M335
I believe you made a mistake in describing your GPU. It should be a R"5" M335 and not a R"3" M335.
Here are the specs for the R5 M335: AMD Radeon R5 M335 Specs | TechPowerUp GPU Database .
It supports OpenGL 4.6 via Driver updates.