VirtualBox

Changeset 66827 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
May 8, 2017 4:53:52 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115274
Message:

GuestHost: Adjustments for Visual C++ v12 / Visual Studio 2013. New warnings and sal_supp.h conflict.

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_net.h

    r63199 r66827  
    1010#ifdef WINDOWS
    1111#define WIN32_LEAN_AND_MEAN
     12# ifndef VBOX
    1213#pragma warning( push, 3 ) /* shut up about warnings in YOUR OWN HEADER FILES!!! */
    1314#include <winsock.h>
     15# else
     16# include <iprt/win/winsock.h>
     17# endif /* VBOX */
    1418#endif
    1519
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    r62814 r66827  
    250250{
    251251    CRStencilBufferStack_v_33 stackV33;
    252     int32_t rc = SSMR3GetMem(pSSM, &stackV33, sizeof (stackV33));
     252    int32_t rc = SSMR3GetMem(pSSM, &stackV33, sizeof(stackV33));
     253    AssertLogRelReturn(rc, rc);
    253254
    254255    s->stencilTest = stackV33.stencilTest;
     
    465466                        GLint curTex;
    466467                        diff_api.GetIntegerv(getEnum, &curTex);
    467                         if (curTex != pTexture->hwid)
     468                        if ((GLuint)curTex != pTexture->hwid)
    468469                        {
    469470                            crWarning("texture not bound properly: expected %d, but was %d. Texture state data: target(0x%x), id(%d), w(%d), h(%d)",
     
    11011102static void crStateSaveGLSLShaderKeyCB(unsigned long key, void *data1, void *data2)
    11021103{
    1103     CRGLSLShader *pShader = (CRGLSLShader*) data1;
     1104    //CRGLSLShader *pShader = (CRGLSLShader*) data1;
    11041105    PSSMHANDLE pSSM = (PSSMHANDLE) data2;
    11051106    int32_t rc;
     
    14481449            for (i = u32Key; i < u32Count + u32Key; ++i)
    14491450            {
    1450                 GLboolean fIsNew = crHashtableAllocRegisterKey(pHash, i);
     1451                GLboolean fIsNew = crHashtableAllocRegisterKey(pHash, i); NOREF(fIsNew);
    14511452#if 0 //def DEBUG_misha
    14521453                CRASSERT(fIsNew);
  • trunk/src/VBox/GuestHost/OpenGL/util/pixel.c

    r64763 r66827  
    1616#if defined(WINDOWS)
    1717# include <float.h>
     18# undef isnan /* _MSC_VER 12.0+ defines this is a complicated macro */
    1819# define isnan(x) _isnan(x)
    1920#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette