Results 1 to 5 of 5
  1. #1
    EmuTalk Member
    Join Date
    Jan 2003
    Posts
    2

    Two patches I found in a mupen64 openSUSE package

    When packaging Mupen64Plus for openSUSE I found this in the Mupen64 package.
    Code:
    --- RenderExt.cpp  
    +++ RenderExt.cpp       2007/11/15 14:22:48  
    @@ -405,7 +405,7 @@  
            }  
       
            //RECT src = {left,top,width, height};  
    -       float depth = ( gRDP.otherMode.depth_source == 1 ) ? depth = gRDP.fPrimitiveDepth : 0;  
    +       float depth = ( gRDP.otherMode.depth_source == 1 ) ? gRDP.fPrimitiveDepth : 0;  
       
            float x0 = sprite.sprite.objX/4.0f;  
            float y0 = sprite.sprite.objY/4.0f;  
    --- TextureFilters.cpp  
    +++ TextureFilters.cpp  2007/11/15 14:24:26  
    @@ -1858,7 +1858,8 @@  
                                            }  
                                            else if( entry.ti.Format == TXT_FMT_I )  
                                            {  
    -                                               *pdst++ = *(pdst-1);  
    +                                               *pdst = *(pdst-1);  
    +                                               pdst++;  
                                            }  
                                            else  
                                            {
    They still apply to Mupen64Plus 1.3. The first one is pretty stupid, but... And the seconds one, I _suppose_ the "++" from "*pdst++" applies to *pdst and not to pdst, and so there is a real bug?



    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #2
    Moderator
    Join Date
    Oct 2007
    Posts
    473
    Thanks for the info. I'm pretty sure that I fixed the second one recently because it threw a warning when we added -Wall to the makefile. I'll take a look at the first.

  3. #3
    Mupen64Plus Dev.
    Join Date
    Oct 2007
    Location
    Michigan (United States of America)
    Posts
    448
    I believe the actual affect of such code is undefined but GCC handles it correctly.

  4. #4
    Moderator
    Join Date
    Nov 2001
    Location
    Oulu, Finland
    Posts
    3,271
    Without further context, the first change looks correct as well.



  5. #5
    Moderator
    Join Date
    Oct 2007
    Posts
    473
    Quote Originally Posted by Slougi View Post
    Without further context, the first change looks correct as well.
    I looked at the code for the first change at the head of SVN, and someone had already modified it. But the new code was also doing some "clever" things, so I simplified it and committed it.

Posting Permissions

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