Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Is changing coding necessary with different graphics cards?

  1. #1
    Newbie Newbie
    Join Date
    Jun 2014
    Posts
    1

    Is changing coding necessary with different graphics cards?

    I am wondering about graphics cards, because I noticed on my computer the display on what I run through Visual Studio comes out different than on another computer.

    For example, when coding I have to move gluOrtho2D() after doing all the primitives, not before like on other computers.

    On my computer, if I have it before, what is displayed is too small; but when I move it to the end just before the glFlush(), it looks the way it should.

    Why did I have to move it for it to look right? Is my graphics card just different, or what?

    Plus, I also noticed that when setting vertices to different colors, the colors blend differently on my computer versus on another computer. I am figuring my graphics card has something to do with that as well.

    The graphics card on my computer is an Intel HD Graphics 3000, and the driver for it is uptodate.

    P.S. When working with openGL in Linux, it does the same thing where what is displayed is too small. That is the main reason why I assumed for sure that my graphics card was the issue when coding.

  2. #2
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,162
    Graphics cards' drivers certainly work differently depending on the vendor, but you have more serious problems in your code that should be fixed

    Quote Originally Posted by Perrintook View Post
    For example, when coding I have to move gluOrtho2D() after doing all the primitives, not before like on other computers.
    gluOrtho2d() should be called before primitives to affect the pipeline. So, if it works on your computer it cheats you by reordering execution.

    Quote Originally Posted by Perrintook View Post
    On my computer, if I have it before, what is displayed is too small; but when I move it to the end just before the glFlush(), it looks the way it should.
    Maybe you should provide some code to help us understand what happens. As with the previous case, some kind of reordering happens.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •