Even on Intel HD 4000 laptop, OpenGL 4.0 worked just fine with the same code.
For more information about installing the latest graphics driver on your system, see How to Install an Intel® Graphics Driver in Windows® 10. As you see in that table, Intel says HD Graphics 3000/2000 only support OpenGL. We recommend that you update to the latest Intel Graphics driver to get full API support. Community support is provided during standard business hours (Monday to Friday 7AM - 5PM PST). Intel Graphics supports a wide range of APIs. Thatd be for some games and android emulator that need opengl es 3.1. Allows for high quality textures and rendering. 32 bit per pixel (bpp) True Color 3D support. Specific features of DirectX 9.0 are supported. PC games and applications often require a graphics card that is compatible with specific Application Programming Interfaces (APIs), such as OpenGL*, DirectX*, OpenCL*, or Vulkan*. Full OpenGL 1.3 ICD (Installable Client Driver) Compatible with DirectX 9.0, 8.x, and 7.x. v3257 is an OpenGL 4.0 driver (GLVERSION: 4.0.0 Build 9.) and exposes 156 OpenGL extensions (GL139 and WGL17).