locked
Did anyone faced to crash in rendering texture which happens after resizing an application if there is an Intel Video Card?

    Question

  • There is an application which renders video with overlays.

    Code for setting textures:

    // Prepare the d3d device for texturing.

    _d3dDevice->GetTextureStageState(0, D3DTSS_ALPHAOP, &_tssAlphaop);
    _d3dDevice->GetTextureStageState(0, D3DTSS_ALPHAARG1, &_tssAlphaarg1);
    _d3dDevice->GetTextureStageState(0, D3DTSS_ALPHAARG2, &_taDiffuse);
    _d3dDevice->GetTextureStageState(0, D3DTSS_COLORARG1, &_taColorarg1);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE);
    _d3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE);

    // texturing

    _d3dDevice->SetTexture(0, overlay);
    _d3dDevice->SetFVF(TEXTURE_CUSTOMFVF);
    _d3dDevice->SetStreamSource(0, _overlayVertices, 0, sizeof(TEXTURE_CUSTOMVERTEX));
    _d3dDevice->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2);
    _d3dDevice->SetStreamSource(0, NULL, 0, 0);

    // Restore the d3d device states after texturing.

    _d3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, _taColorarg1);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG2, _taDiffuse);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, _tssAlphaarg1);
    _d3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, _tssAlphaop);
    _d3dDevice->SetTexture(0, NULL);

    it works fine in most cases. But if we resize - we get crash  somewhere in video driver dll, in igdumdim32.dll. There is no informative call stack. If switch off overlays and play just video - everything's ok.

    Friday, January 16, 2015 2:44 PM

Answers

  • Hi Olena

    Thanks for your confirmation. Looks like Intel video card is the key issue.

    I would suggest you to contact Intel for a better support. The issue looks hardly to covered by code.

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, January 22, 2015 7:54 AM
    Moderator

All replies

  • Hi Olena,

    Only crash with Intel video card? And could you provide us the model of the video card? Could it be the setting of the video card?

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 19, 2015 10:10 AM
    Moderator
  • Hi James,

    The model of video card - Intel(R) HD Graphics 4400; driver version 9.18.10.3324, 2013-10-07.

    I checked it on ~10 computers - it works correct on almost all computers with different video cards, except two laptops with Intel video card.

    Olena

    Tuesday, January 20, 2015 11:59 AM
  • Hi Olena

    Thanks for your confirmation. Looks like Intel video card is the key issue.

    I would suggest you to contact Intel for a better support. The issue looks hardly to covered by code.

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, January 22, 2015 7:54 AM
    Moderator