shunsukesaito / PIFu

This repository contains the code for the paper "PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization"
https://shunsukesaito.github.io/PIFu/
Other
1.76k stars 341 forks source link

Modified code to loop through devices to check if context can be created #50

Closed RohanChacko closed 3 years ago

RohanChacko commented 4 years ago

Submitting a PR to create an EGL display by iterating through possible devices and using the first one where the EGL context can be created. Previous code errors out with EGL_BAD_ACCESS if initialized display using egl.eglGetDisplay(egl.EGL_DEFAULT_DISPLAY). This fix seems to work only with PyOpenGL ver 3.1.5 (not the conda version).