diff options
author | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
commit | acfdcf2b1deeb04698174c78e8cb22b093445bb1 (patch) | |
tree | 811293650bcf81d01ea7c54d7c2cf263110aa329 /linden/indra/llwindow | |
parent | Second Life viewer sources 1.20.2 (diff) | |
download | meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.zip meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.gz meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.bz2 meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.xz |
Second Life viewer sources 1.20.3
Diffstat (limited to 'linden/indra/llwindow')
-rw-r--r-- | linden/indra/llwindow/llgl.cpp | 19 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindowwin32.cpp | 25 |
2 files changed, 41 insertions, 3 deletions
diff --git a/linden/indra/llwindow/llgl.cpp b/linden/indra/llwindow/llgl.cpp index a059cd4..229fdf2 100644 --- a/linden/indra/llwindow/llgl.cpp +++ b/linden/indra/llwindow/llgl.cpp | |||
@@ -1152,7 +1152,7 @@ void LLGLState::checkTextureChannels() | |||
1152 | llwarns << "Texture matrix in channel " << i << " corrupt." << llendl; | 1152 | llwarns << "Texture matrix in channel " << i << " corrupt." << llendl; |
1153 | } | 1153 | } |
1154 | 1154 | ||
1155 | for (S32 j = (i == 0 ? 2 : 0); j < 8; j++) | 1155 | for (S32 j = (i == 0 ? 1 : 0); j < 8; j++) |
1156 | { | 1156 | { |
1157 | if (glIsEnabled(value[j])) | 1157 | if (glIsEnabled(value[j])) |
1158 | { | 1158 | { |
@@ -1177,6 +1177,23 @@ void LLGLState::checkClientArrays(U32 data_mask) | |||
1177 | #if LL_DEBUG_GL | 1177 | #if LL_DEBUG_GL |
1178 | stop_glerror(); | 1178 | stop_glerror(); |
1179 | BOOL error = FALSE; | 1179 | BOOL error = FALSE; |
1180 | |||
1181 | GLint active_texture; | ||
1182 | glGetIntegerv(GL_CLIENT_ACTIVE_TEXTURE_ARB, &active_texture); | ||
1183 | |||
1184 | if (active_texture != GL_TEXTURE0_ARB) | ||
1185 | { | ||
1186 | llwarns << "Client active texture corrupted: " << active_texture << llendl; | ||
1187 | error = TRUE; | ||
1188 | } | ||
1189 | |||
1190 | glGetIntegerv(GL_ACTIVE_TEXTURE_ARB, &active_texture); | ||
1191 | if (active_texture != GL_TEXTURE0_ARB) | ||
1192 | { | ||
1193 | llwarns << "Active texture corrupted: " << active_texture << llendl; | ||
1194 | error = TRUE; | ||
1195 | } | ||
1196 | |||
1180 | static const char* label[] = | 1197 | static const char* label[] = |
1181 | { | 1198 | { |
1182 | "GL_VERTEX_ARRAY", | 1199 | "GL_VERTEX_ARRAY", |
diff --git a/linden/indra/llwindow/llwindowwin32.cpp b/linden/indra/llwindow/llwindowwin32.cpp index b14df5e..9963493 100644 --- a/linden/indra/llwindow/llwindowwin32.cpp +++ b/linden/indra/llwindow/llwindowwin32.cpp | |||
@@ -1326,8 +1326,9 @@ BOOL LLWindowWin32::switchContext(BOOL fullscreen, const LLCoordScreen &size, BO | |||
1326 | close(); | 1326 | close(); |
1327 | OSMessageBox( | 1327 | OSMessageBox( |
1328 | "Second Life is unable to run because your video card drivers\n" | 1328 | "Second Life is unable to run because your video card drivers\n" |
1329 | "are out of date or unsupported. Please make sure you have\n" | 1329 | "did not install properly, are out of date, or are for unsupported\n" |
1330 | "the latest video card drivers installed.\n\n" | 1330 | "hardware. Please make sure you have the latest video card drivers\n" |
1331 | "and even if you do have the latest, try reinstalling them.\n\n" | ||
1331 | "If you continue to receive this message, contact customer service.", | 1332 | "If you continue to receive this message, contact customer service.", |
1332 | "Error", | 1333 | "Error", |
1333 | OSMB_OK); | 1334 | OSMB_OK); |
@@ -1836,6 +1837,10 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
1836 | break; | 1837 | break; |
1837 | } | 1838 | } |
1838 | case WM_IME_SETCONTEXT: | 1839 | case WM_IME_SETCONTEXT: |
1840 | if (gDebugWindowProc) | ||
1841 | { | ||
1842 | llinfos << "WM_IME_SETCONTEXT" << llendl; | ||
1843 | } | ||
1839 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) | 1844 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) |
1840 | { | 1845 | { |
1841 | l_param &= ~ISC_SHOWUICOMPOSITIONWINDOW; | 1846 | l_param &= ~ISC_SHOWUICOMPOSITIONWINDOW; |
@@ -1844,6 +1849,10 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
1844 | break; | 1849 | break; |
1845 | 1850 | ||
1846 | case WM_IME_STARTCOMPOSITION: | 1851 | case WM_IME_STARTCOMPOSITION: |
1852 | if (gDebugWindowProc) | ||
1853 | { | ||
1854 | llinfos << "WM_IME_STARTCOMPOSITION" << llendl; | ||
1855 | } | ||
1847 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) | 1856 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) |
1848 | { | 1857 | { |
1849 | window_imp->handleStartCompositionMessage(); | 1858 | window_imp->handleStartCompositionMessage(); |
@@ -1852,6 +1861,10 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
1852 | break; | 1861 | break; |
1853 | 1862 | ||
1854 | case WM_IME_ENDCOMPOSITION: | 1863 | case WM_IME_ENDCOMPOSITION: |
1864 | if (gDebugWindowProc) | ||
1865 | { | ||
1866 | llinfos << "WM_IME_ENDCOMPOSITION" << llendl; | ||
1867 | } | ||
1855 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) | 1868 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) |
1856 | { | 1869 | { |
1857 | return 0; | 1870 | return 0; |
@@ -1859,6 +1872,10 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
1859 | break; | 1872 | break; |
1860 | 1873 | ||
1861 | case WM_IME_COMPOSITION: | 1874 | case WM_IME_COMPOSITION: |
1875 | if (gDebugWindowProc) | ||
1876 | { | ||
1877 | llinfos << "WM_IME_COMPOSITION" << llendl; | ||
1878 | } | ||
1862 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) | 1879 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) |
1863 | { | 1880 | { |
1864 | window_imp->handleCompositionMessage(l_param); | 1881 | window_imp->handleCompositionMessage(l_param); |
@@ -1867,6 +1884,10 @@ LRESULT CALLBACK LLWindowWin32::mainWindowProc(HWND h_wnd, UINT u_msg, WPARAM w_ | |||
1867 | break; | 1884 | break; |
1868 | 1885 | ||
1869 | case WM_IME_REQUEST: | 1886 | case WM_IME_REQUEST: |
1887 | if (gDebugWindowProc) | ||
1888 | { | ||
1889 | llinfos << "WM_IME_REQUEST" << llendl; | ||
1890 | } | ||
1870 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) | 1891 | if (LLWinImm::isAvailable() && window_imp->mPreeditor) |
1871 | { | 1892 | { |
1872 | LRESULT result = 0; | 1893 | LRESULT result = 0; |