Score:0

Trying To Install OpenGL 4.6 on Ubuntu 20.04

cn flag

I have a Nvidia GeForce GTX 1050 GPU. When I check my installation it has it but when I try to use it, it doesn't work as intended. This is what my GPU specs look like:

alex@FatPc:~$ inxi -G
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050] driver: N/A 
  Display: x11 server: X.Org 1.20.9 driver: fbdev,nouveau 
  unloaded: modesetting,vesa resolution: 1920x1080~77Hz 
  OpenGL: renderer: llvmpipe (LLVM 12.0.1 256 bits) 
  v: 4.5 Mesa 21.2.0-devel (git-dd98918 2021-07-12 focal-oibaf-ppa) 
alex@FatPc:~$ 

Heres the code i tested it with:

#include <GL/glut.h>

void displayMe(void)
{
    glClear(GL_COLOR_BUFFER_BIT);
    glBegin(GL_POLYGON);
        glVertex3f(0.5, 0.0, 0.5);
        glVertex3f(0.5, 0.0, 0.0);
        glVertex3f(0.0, 0.5, 0.0);
        glVertex3f(0.0, 0.0, 0.5);
    glEnd();
    glFlush();
}

int main(int argc, char** argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE);
    glutInitWindowSize(400, 300);
    glutInitWindowPosition(100, 100);
    glutCreateWindow("Hello world!");
    glutDisplayFunc(displayMe);
    glutMainLoop();
    return 0;
}

What i get from tests:

Kulfy avatar
mz flag
How did you compile the source? Double click doesn't work with shared libraries or ELF executable.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.