1. 24 Aug, 2010 3 commits
  2. 23 Aug, 2010 2 commits
  3. 17 Aug, 2010 1 commit
    • Fixed crash on context lost. · 94e1934d
      apatrick@chromium.org authored
      This fixes the crash on lost context for vista and windows 7 if suitable drivers are available. It now uses D3D9Ex when available and this only reports lost contexts for hardware failures and suchlike.
      
      Testing procedure was:
      - run simple_vertex_shader without this change.
      - ctrl+alt+del to lock machine.
      - return to desktop.
      - observe that simple_vertex_shader crashes.
      - repeat with this change and check that simple_vertex_shader is still animating.
      - simulate the code path that an XP machine would take using the debugger and check that old behavior is preserved.
      
      I decided to load D3D9.DLL at runtime for a couple of reasons. First, I didn't want to assume that older implementations of D3D9 would have the Direct3DCreate9Ex entry point. Second, it might be advantageous for some applications to not have a load time dependency on D3D9. I didn't address this for D3DX9 because it's a little harder - there's no clear way to determine which D3DX9_x.DLL library to open. At least D3DX9_x.DLL does not seem to import D3D9.DLL and D3DX is separately redistributable so there is still some advantage to be had.
      Review URL: http://codereview.appspot.com/1951044
      
      git-svn-id: https://angleproject.googlecode.com/svn/trunk@384 736b8ea6-26fd-11df-bfd4-992fa37f6226
  4. 12 Aug, 2010 2 commits
  5. 09 Aug, 2010 10 commits
  6. 08 Aug, 2010 2 commits
  7. 05 Aug, 2010 1 commit
  8. 04 Aug, 2010 1 commit
  9. 28 Jul, 2010 14 commits
  10. 27 Jul, 2010 1 commit
  11. 26 Jul, 2010 2 commits
  12. 22 Jul, 2010 1 commit
    • ReadPixels recovers from device lost error. · 6db8cab4
      apatrick@chromium.org authored
      I found that when I switch desktops, GetRenderTargetData will return D3DERR_DEVICELOST. It is unclear to me whether ReadPixels should report a GL error in this case and if so, which one. I went with GL_OUT_OF_MEMORY. Let me know if that's wrong.
      
      This change is not sufficient to make eglGetError report EGL_CONTEXT_LOST. For a program doing exclusively offscreen rendering, ReadPixels might be the only place where D3DERR_DEVICELOST can be detected. The GLES code can't call egl::setCurrentError though. I'm not sure how to fix that.
      
      
      
      
      Review URL: http://codereview.appspot.com/1692053
      
      git-svn-id: https://angleproject.googlecode.com/svn/trunk@350 736b8ea6-26fd-11df-bfd4-992fa37f6226