Merge ~azzar1/nux:fix-ftbs into nux:master
- Git
- lp:~azzar1/nux
- fix-ftbs
- Merge into master
Proposed by
Andrea Azzarone
Status: | Work in progress |
---|---|
Proposed branch: | ~azzar1/nux:fix-ftbs |
Merge into: | nux:master |
Diff against target: |
376 lines (+51/-108) 14 files modified
Nux/TextEntry.cpp (+5/-3) Nux/TextEntry.h (+1/-1) Nux/WindowThread.cpp (+0/-1) Nux/XICClient.cpp (+6/-8) Nux/XICClient.h (+4/-4) Nux/XIMCallbacks.cpp (+9/-15) NuxGraphics/Events.cpp (+0/-41) NuxGraphics/Events.h (+26/-28) gputests/framebufferobject.cpp (+0/-1) gputests/quad_2texmod.cpp (+0/-1) gputests/texture_blur.cpp (+0/-1) gputests/texture_copy_blur.cpp (+0/-1) gputests/texture_data.cpp (+0/-2) gputests/texture_power_of_2.cpp (+0/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Unity Team | Pending | ||
Review via email: mp+363369@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Unmerged commits
- 3e1285e... by Andrea Azzarone
-
XICClient: Update signature of preedit callbacks
- 539c191... by Andrea Azzarone
-
events: Use value-initializ
ation instead of memset - a52383c... by Andrea Azzarone
-
textEntry: fix FTBS
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/Nux/TextEntry.cpp b/Nux/TextEntry.cpp | |||
2 | index 26086fb..2554647 100644 | |||
3 | --- a/Nux/TextEntry.cpp | |||
4 | +++ b/Nux/TextEntry.cpp | |||
5 | @@ -1140,8 +1140,10 @@ namespace nux | |||
6 | 1140 | } | 1140 | } |
7 | 1141 | } | 1141 | } |
8 | 1142 | 1142 | ||
10 | 1143 | bool TextEntry::CursorBlinkCallback(TextEntry *self) | 1143 | gboolean TextEntry::CursorBlinkCallback(gpointer data) |
11 | 1144 | { | 1144 | { |
12 | 1145 | TextEntry *self = static_cast<TextEntry*>(data); | ||
13 | 1146 | |||
14 | 1145 | if (self->cursor_blink_status_) | 1147 | if (self->cursor_blink_status_) |
15 | 1146 | self->ShowCursor(); | 1148 | self->ShowCursor(); |
16 | 1147 | else | 1149 | else |
17 | @@ -1150,7 +1152,7 @@ namespace nux | |||
18 | 1150 | if (--self->cursor_blink_status_ < 0) | 1152 | if (--self->cursor_blink_status_ < 0) |
19 | 1151 | self->cursor_blink_status_ = 2; | 1153 | self->cursor_blink_status_ = 2; |
20 | 1152 | 1154 | ||
22 | 1153 | return true; | 1155 | return TRUE; |
23 | 1154 | } | 1156 | } |
24 | 1155 | 1157 | ||
25 | 1156 | void TextEntry::QueueCursorBlink() | 1158 | void TextEntry::QueueCursorBlink() |
26 | @@ -1160,7 +1162,7 @@ namespace nux | |||
27 | 1160 | 1162 | ||
28 | 1161 | if (!cursor_blink_timer_) | 1163 | if (!cursor_blink_timer_) |
29 | 1162 | cursor_blink_timer_ = g_timeout_add(kCursorBlinkTimeout, | 1164 | cursor_blink_timer_ = g_timeout_add(kCursorBlinkTimeout, |
31 | 1163 | (GSourceFunc)&CursorBlinkCallback, | 1165 | &TextEntry::CursorBlinkCallback, |
32 | 1164 | this); | 1166 | this); |
33 | 1165 | } | 1167 | } |
34 | 1166 | 1168 | ||
35 | diff --git a/Nux/TextEntry.h b/Nux/TextEntry.h | |||
36 | index 6880e10..142d670 100644 | |||
37 | --- a/Nux/TextEntry.h | |||
38 | +++ b/Nux/TextEntry.h | |||
39 | @@ -292,7 +292,7 @@ namespace nux | |||
40 | 292 | void ResetPreedit(); | 292 | void ResetPreedit(); |
41 | 293 | /** Send out a request to blink the cursor if necessary */ | 293 | /** Send out a request to blink the cursor if necessary */ |
42 | 294 | void QueueCursorBlink(); | 294 | void QueueCursorBlink(); |
44 | 295 | static bool CursorBlinkCallback(TextEntry* data); | 295 | static gboolean CursorBlinkCallback(gpointer data); |
45 | 296 | 296 | ||
46 | 297 | void ShowCursor(); | 297 | void ShowCursor(); |
47 | 298 | void HideCursor(); | 298 | void HideCursor(); |
48 | diff --git a/Nux/WindowThread.cpp b/Nux/WindowThread.cpp | |||
49 | index a043142..add0a20 100644 | |||
50 | --- a/Nux/WindowThread.cpp | |||
51 | +++ b/Nux/WindowThread.cpp | |||
52 | @@ -1343,7 +1343,6 @@ DECLARE_LOGGER(logger, "nux.windows.thread"); | |||
53 | 1343 | } | 1343 | } |
54 | 1344 | 1344 | ||
55 | 1345 | Event nux_event; | 1345 | Event nux_event; |
56 | 1346 | memset(&nux_event, 0, sizeof(Event)); | ||
57 | 1347 | #if defined(NUX_OS_WINDOWS) | 1346 | #if defined(NUX_OS_WINDOWS) |
58 | 1348 | graphics_display_->ProcessForeignWin32Event(hWnd, msg, wParam, lParam, &nux_event); | 1347 | graphics_display_->ProcessForeignWin32Event(hWnd, msg, wParam, lParam, &nux_event); |
59 | 1349 | #elif defined(USE_X11) | 1348 | #elif defined(USE_X11) |
60 | diff --git a/Nux/XICClient.cpp b/Nux/XICClient.cpp | |||
61 | index a010504..e2d5a10 100644 | |||
62 | --- a/Nux/XICClient.cpp | |||
63 | +++ b/Nux/XICClient.cpp | |||
64 | @@ -44,18 +44,16 @@ void XICClient::SetCurrentTextEntry(TextEntry* text_entry) | |||
65 | 44 | text_entry_ = text_entry; | 44 | text_entry_ = text_entry; |
66 | 45 | } | 45 | } |
67 | 46 | 46 | ||
71 | 47 | static int preedit_caret_callback(XIC xic, | 47 | static void preedit_caret_callback(XIC xic, |
72 | 48 | XPointer clientdata, | 48 | XPointer clientdata, |
73 | 49 | XIMPreeditCaretCallbackStruct* call_data) | 49 | XIMPreeditCaretCallbackStruct* call_data) |
74 | 50 | { | 50 | { |
75 | 51 | return 0; | ||
76 | 52 | } | 51 | } |
77 | 53 | 52 | ||
81 | 54 | static int status_start_callback(XIC xic, | 53 | static void status_start_callback(XIC xic, |
82 | 55 | XPointer clientdata, | 54 | XPointer clientdata, |
83 | 56 | XIMPreeditDrawCallbackStruct* call_data) | 55 | XIMPreeditDrawCallbackStruct* call_data) |
84 | 57 | { | 56 | { |
85 | 58 | return 0; | ||
86 | 59 | } | 57 | } |
87 | 60 | 58 | ||
88 | 61 | static void status_draw_callback(XIC xic, | 59 | static void status_draw_callback(XIC xic, |
89 | diff --git a/Nux/XICClient.h b/Nux/XICClient.h | |||
90 | index c64e69b..f1b92c8 100644 | |||
91 | --- a/Nux/XICClient.h | |||
92 | +++ b/Nux/XICClient.h | |||
93 | @@ -55,11 +55,11 @@ private: | |||
94 | 55 | XVaNestedList GetStatusCallbacks(); | 55 | XVaNestedList GetStatusCallbacks(); |
95 | 56 | XIMStyle FilterXIMStyle(); | 56 | XIMStyle FilterXIMStyle(); |
96 | 57 | 57 | ||
99 | 58 | static int PreeditStartCallback(XIC xic, XPointer clientdata, XPointer data); | 58 | static void PreeditStartCallback(XIC xic, XPointer clientdata, XPointer data); |
100 | 59 | static int PreeditDoneCallback(XIC xic, XPointer clientdata, XPointer data); | 59 | static void PreeditDoneCallback(XIC xic, XPointer clientdata, XPointer data); |
101 | 60 | 60 | ||
104 | 61 | static int PreeditDrawCallback(XIC xic, XPointer clientdata, | 61 | static void PreeditDrawCallback(XIC xic, XPointer clientdata, |
105 | 62 | XIMPreeditDrawCallbackStruct* call_data); | 62 | XIMPreeditDrawCallbackStruct* call_data); |
106 | 63 | 63 | ||
107 | 64 | TextEntry* text_entry_; | 64 | TextEntry* text_entry_; |
108 | 65 | XIC xic_; | 65 | XIC xic_; |
109 | diff --git a/Nux/XIMCallbacks.cpp b/Nux/XIMCallbacks.cpp | |||
110 | index aa54103..afd6cc2 100644 | |||
111 | --- a/Nux/XIMCallbacks.cpp | |||
112 | +++ b/Nux/XIMCallbacks.cpp | |||
113 | @@ -38,30 +38,26 @@ namespace nux | |||
114 | 38 | 38 | ||
115 | 39 | int const FEEDBACK_MASK = (XIMUnderline | XIMReverse); | 39 | int const FEEDBACK_MASK = (XIMUnderline | XIMReverse); |
116 | 40 | 40 | ||
120 | 41 | int XICClient::PreeditStartCallback(XIC xic, | 41 | void XICClient::PreeditStartCallback(XIC xic, |
121 | 42 | XPointer clientdata, | 42 | XPointer clientdata, |
122 | 43 | XPointer call_data) | 43 | XPointer call_data) |
123 | 44 | { | 44 | { |
124 | 45 | TextEntry* text_entry = (TextEntry*)clientdata; | 45 | TextEntry* text_entry = (TextEntry*)clientdata; |
125 | 46 | if (text_entry) | 46 | if (text_entry) |
126 | 47 | { | 47 | { |
127 | 48 | text_entry->PreeditStarted(); | 48 | text_entry->PreeditStarted(); |
128 | 49 | } | 49 | } |
129 | 50 | |||
130 | 51 | return 0; | ||
131 | 52 | } | 50 | } |
132 | 53 | 51 | ||
136 | 54 | int XICClient::PreeditDoneCallback(XIC xic, | 52 | void XICClient::PreeditDoneCallback(XIC xic, |
137 | 55 | XPointer clientdata, | 53 | XPointer clientdata, |
138 | 56 | XPointer call_data) | 54 | XPointer call_data) |
139 | 57 | { | 55 | { |
140 | 58 | TextEntry* text_entry = (TextEntry*)clientdata; | 56 | TextEntry* text_entry = (TextEntry*)clientdata; |
141 | 59 | if (text_entry) | 57 | if (text_entry) |
142 | 60 | { | 58 | { |
143 | 61 | text_entry->ClearPreedit(); | 59 | text_entry->ClearPreedit(); |
144 | 62 | } | 60 | } |
145 | 63 | |||
146 | 64 | return 0; | ||
147 | 65 | } | 61 | } |
148 | 66 | 62 | ||
149 | 67 | void add_feedback_attr(PangoAttrList* attrs, | 63 | void add_feedback_attr(PangoAttrList* attrs, |
150 | @@ -154,9 +150,9 @@ void feedback_to_pango_list(PangoAttrList** attrs, | |||
151 | 154 | } | 150 | } |
152 | 155 | } | 151 | } |
153 | 156 | 152 | ||
157 | 157 | int XICClient::PreeditDrawCallback(XIC xic, | 153 | void XICClient::PreeditDrawCallback(XIC xic, |
158 | 158 | XPointer clientdata, | 154 | XPointer clientdata, |
159 | 159 | XIMPreeditDrawCallbackStruct* call_data) | 155 | XIMPreeditDrawCallbackStruct* call_data) |
160 | 160 | { | 156 | { |
161 | 161 | TextEntry* text_entry = (TextEntry*)clientdata; | 157 | TextEntry* text_entry = (TextEntry*)clientdata; |
162 | 162 | 158 | ||
163 | @@ -182,8 +178,6 @@ int XICClient::PreeditDrawCallback(XIC xic, | |||
164 | 182 | text_entry->UpdatePreeditAttribs(preedit_attr); | 178 | text_entry->UpdatePreeditAttribs(preedit_attr); |
165 | 183 | text_entry->UpdatePreedit(preedit, call_data->caret); | 179 | text_entry->UpdatePreedit(preedit, call_data->caret); |
166 | 184 | } | 180 | } |
167 | 185 | |||
168 | 186 | return 0; | ||
169 | 187 | } | 181 | } |
170 | 188 | 182 | ||
171 | 189 | } | 183 | } |
172 | diff --git a/NuxGraphics/Events.cpp b/NuxGraphics/Events.cpp | |||
173 | index a9a5c09..ebef5f8 100644 | |||
174 | --- a/NuxGraphics/Events.cpp | |||
175 | +++ b/NuxGraphics/Events.cpp | |||
176 | @@ -58,47 +58,6 @@ namespace nux | |||
177 | 58 | return((key_modifiers_states & key_modifier) != 0); | 58 | return((key_modifiers_states & key_modifier) != 0); |
178 | 59 | } | 59 | } |
179 | 60 | 60 | ||
180 | 61 | Event::Event() | ||
181 | 62 | { | ||
182 | 63 | Memset(text, 0, sizeof(text)); | ||
183 | 64 | dtext = nullptr; | ||
184 | 65 | |||
185 | 66 | for (int i = 0; i < NUX_MAX_VK; i++) | ||
186 | 67 | { | ||
187 | 68 | VirtualKeycodeState[i] = 0; | ||
188 | 69 | } | ||
189 | 70 | |||
190 | 71 | ascii_code = 0; | ||
191 | 72 | virtual_code = 0; | ||
192 | 73 | key_modifiers = 0; | ||
193 | 74 | key_repeat_count = 0; | ||
194 | 75 | mouse_state = 0; | ||
195 | 76 | x = -1; | ||
196 | 77 | y = -1; | ||
197 | 78 | x_root = 0; | ||
198 | 79 | y_root = 0; | ||
199 | 80 | dx = 0; | ||
200 | 81 | dy = 0; | ||
201 | 82 | clicks = 0; | ||
202 | 83 | is_click = 0; | ||
203 | 84 | wheel_delta = 0; | ||
204 | 85 | |||
205 | 86 | #if defined(NUX_OS_WINDOWS) | ||
206 | 87 | win32_keycode = 0; | ||
207 | 88 | win32_keysym = 0; | ||
208 | 89 | #endif | ||
209 | 90 | |||
210 | 91 | #if defined(USE_X11) | ||
211 | 92 | x11_keycode = 0; | ||
212 | 93 | x11_keysym = 0; | ||
213 | 94 | x11_timestamp = 0; | ||
214 | 95 | x11_window = 0; | ||
215 | 96 | x11_key_state = 0; | ||
216 | 97 | #endif | ||
217 | 98 | |||
218 | 99 | //Application = 0; | ||
219 | 100 | } | ||
220 | 101 | |||
221 | 102 | void Event::Reset() | 61 | void Event::Reset() |
222 | 103 | { | 62 | { |
223 | 104 | type = NUX_NO_EVENT; | 63 | type = NUX_NO_EVENT; |
224 | diff --git a/NuxGraphics/Events.h b/NuxGraphics/Events.h | |||
225 | index b9e4edc..b383f14 100644 | |||
226 | --- a/NuxGraphics/Events.h | |||
227 | +++ b/NuxGraphics/Events.h | |||
228 | @@ -313,8 +313,6 @@ namespace nux | |||
229 | 313 | class Event | 313 | class Event |
230 | 314 | { | 314 | { |
231 | 315 | public: | 315 | public: |
232 | 316 | Event(); | ||
233 | 317 | |||
234 | 318 | // Because an event is save in event_type instead of calling immediately the handling function, | 316 | // Because an event is save in event_type instead of calling immediately the handling function, |
235 | 319 | // we must clear the previous event each time before we test for new event in Gfx_OpenGLImpl::get_event. | 317 | // we must clear the previous event each time before we test for new event in Gfx_OpenGLImpl::get_event. |
236 | 320 | /*virtual*/ void Reset(); | 318 | /*virtual*/ void Reset(); |
237 | @@ -383,39 +381,39 @@ namespace nux | |||
238 | 383 | */ | 381 | */ |
239 | 384 | unsigned long GetVirtualKeyState(unsigned long VirtualKey) const; | 382 | unsigned long GetVirtualKeyState(unsigned long VirtualKey) const; |
240 | 385 | 383 | ||
245 | 386 | unsigned long VirtualKeycodeState[NUX_MAX_VK]; | 384 | unsigned long VirtualKeycodeState[NUX_MAX_VK] = {}; |
246 | 387 | int width, height; | 385 | int width = 0, height = 0; |
247 | 388 | unsigned int ascii_code; | 386 | unsigned int ascii_code = 0; |
248 | 389 | int virtual_code; | 387 | int virtual_code = 0; |
249 | 390 | 388 | ||
258 | 391 | int x; | 389 | int x = -1; |
259 | 392 | int y; | 390 | int y = -1; |
260 | 393 | int x_root; | 391 | int x_root = 0; |
261 | 394 | int y_root; | 392 | int y_root = 0; |
262 | 395 | int dx; | 393 | int dx = 0; |
263 | 396 | int dy; | 394 | int dy = 0; |
264 | 397 | int clicks; | 395 | int clicks = 0; |
265 | 398 | int is_click; | 396 | int is_click = 0; |
266 | 399 | 397 | ||
267 | 400 | #if defined(NUX_OS_WINDOWS) | 398 | #if defined(NUX_OS_WINDOWS) |
270 | 401 | int win32_keycode; // Not used. Just a place holder. | 399 | int win32_keycode = 0; // Not used. Just a place holder. |
271 | 402 | int win32_keysym; | 400 | int win32_keysym = 0; |
272 | 403 | #elif defined(USE_X11) | 401 | #elif defined(USE_X11) |
278 | 404 | Time x11_timestamp; //!< X11 timestamp. | 402 | Time x11_timestamp = 0; //!< X11 timestamp. |
279 | 405 | Window x11_window; //!< X11 window. | 403 | Window x11_window = 0; //!< X11 window. |
280 | 406 | unsigned int x11_key_state; //!< X11 key state (xevent.xkey.state). | 404 | unsigned int x11_key_state = 0; //!< X11 key state (xevent.xkey.state). |
281 | 407 | unsigned int x11_keycode; //!< X11 raw keycode. | 405 | unsigned int x11_keycode = 0; //!< X11 raw keycode. |
282 | 408 | KeySym x11_keysym; //!< X11 keysym. | 406 | KeySym x11_keysym = 0; //!< X11 keysym. |
283 | 409 | #endif | 407 | #endif |
284 | 410 | 408 | ||
286 | 411 | int wheel_delta; //!< Wheel delta. | 409 | int wheel_delta = 0; //!< Wheel delta. |
287 | 412 | 410 | ||
294 | 413 | char text[NUX_EVENT_TEXT_BUFFER_SIZE]; | 411 | char text[NUX_EVENT_TEXT_BUFFER_SIZE] = {}; |
295 | 414 | char* dtext; //!< Dynamically allocated | 412 | char* dtext = nullptr; //!< Dynamically allocated |
296 | 415 | unsigned long key_modifiers; //!< Key modifiers. A bitwise inclusive OR of values in KeyModifier. | 413 | unsigned long key_modifiers = 0; //!< Key modifiers. A bitwise inclusive OR of values in KeyModifier. |
297 | 416 | unsigned long mouse_state; | 414 | unsigned long mouse_state = 0; |
298 | 417 | unsigned short key_repeat_count; //!< Number of time a key is repeated; | 415 | unsigned short key_repeat_count = 0; //!< Number of time a key is repeated; |
299 | 418 | EventType type; | 416 | EventType type = EVENT_NONE; |
300 | 419 | }; | 417 | }; |
301 | 420 | }; | 418 | }; |
302 | 421 | 419 | ||
303 | diff --git a/gputests/framebufferobject.cpp b/gputests/framebufferobject.cpp | |||
304 | index 9bbca5d..9b64a7f 100644 | |||
305 | --- a/gputests/framebufferobject.cpp | |||
306 | +++ b/gputests/framebufferobject.cpp | |||
307 | @@ -58,7 +58,6 @@ void RenderToFrameBufferObject () | |||
308 | 58 | graphics_engine->Push2DWindow(w, h); | 58 | graphics_engine->Push2DWindow(w, h); |
309 | 59 | 59 | ||
310 | 60 | nux::Event event; | 60 | nux::Event event; |
311 | 61 | memset(&event, 0, sizeof(nux::Event)); | ||
312 | 62 | 61 | ||
313 | 63 | bool first_time = true; | 62 | bool first_time = true; |
314 | 64 | do | 63 | do |
315 | diff --git a/gputests/quad_2texmod.cpp b/gputests/quad_2texmod.cpp | |||
316 | index 6170015..638b3f9 100755 | |||
317 | --- a/gputests/quad_2texmod.cpp | |||
318 | +++ b/gputests/quad_2texmod.cpp | |||
319 | @@ -87,7 +87,6 @@ void QuadRendering_2TexMod () | |||
320 | 87 | 87 | ||
321 | 88 | int w, h; | 88 | int w, h; |
322 | 89 | nux::Event event; | 89 | nux::Event event; |
323 | 90 | memset(&event, 0, sizeof(nux::Event)); | ||
324 | 91 | graphics_engine->GetWindowSize(w, h); | 90 | graphics_engine->GetWindowSize(w, h); |
325 | 92 | graphics_engine->SetViewport(0, 0, w, h); | 91 | graphics_engine->SetViewport(0, 0, w, h); |
326 | 93 | graphics_engine->SetScissor(0, 0, w, h); | 92 | graphics_engine->SetScissor(0, 0, w, h); |
327 | diff --git a/gputests/texture_blur.cpp b/gputests/texture_blur.cpp | |||
328 | index de15aae..355050e 100644 | |||
329 | --- a/gputests/texture_blur.cpp | |||
330 | +++ b/gputests/texture_blur.cpp | |||
331 | @@ -60,7 +60,6 @@ void RenderBlurredTexture () | |||
332 | 60 | graphics_engine->Push2DWindow(w, h); | 60 | graphics_engine->Push2DWindow(w, h); |
333 | 61 | 61 | ||
334 | 62 | nux::Event event; | 62 | nux::Event event; |
335 | 63 | memset(&event, 0, sizeof(nux::Event)); | ||
336 | 64 | 63 | ||
337 | 65 | /*char fps [25]; | 64 | /*char fps [25]; |
338 | 66 | int frame_counter = 0; | 65 | int frame_counter = 0; |
339 | diff --git a/gputests/texture_copy_blur.cpp b/gputests/texture_copy_blur.cpp | |||
340 | index 54f1cf7..8e79e36 100644 | |||
341 | --- a/gputests/texture_copy_blur.cpp | |||
342 | +++ b/gputests/texture_copy_blur.cpp | |||
343 | @@ -60,7 +60,6 @@ void RenderBlurredCopyOfRenderTarget () | |||
344 | 60 | graphics_engine->Push2DWindow(w, h); | 60 | graphics_engine->Push2DWindow(w, h); |
345 | 61 | 61 | ||
346 | 62 | nux::Event event; | 62 | nux::Event event; |
347 | 63 | memset(&event, 0, sizeof(nux::Event)); | ||
348 | 64 | 63 | ||
349 | 65 | /*char fps [25]; | 64 | /*char fps [25]; |
350 | 66 | int frame_counter = 0; | 65 | int frame_counter = 0; |
351 | diff --git a/gputests/texture_data.cpp b/gputests/texture_data.cpp | |||
352 | index f8248d2..6bd22f3 100644 | |||
353 | --- a/gputests/texture_data.cpp | |||
354 | +++ b/gputests/texture_data.cpp | |||
355 | @@ -95,9 +95,7 @@ void RenderTexturePowerOfTwo () | |||
356 | 95 | m_GraphicsContext->Push2DWindow(w, h); | 95 | m_GraphicsContext->Push2DWindow(w, h); |
357 | 96 | 96 | ||
358 | 97 | nux::Event event; | 97 | nux::Event event; |
359 | 98 | memset(&event, 0, sizeof(nux::Event)); | ||
360 | 99 | 98 | ||
361 | 100 | |||
362 | 101 | { | 99 | { |
363 | 102 | CHECKGL( glClearColor(0, 0, 0, 1) ); | 100 | CHECKGL( glClearColor(0, 0, 0, 1) ); |
364 | 103 | CHECKGL( glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT) ); | 101 | CHECKGL( glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT) ); |
365 | diff --git a/gputests/texture_power_of_2.cpp b/gputests/texture_power_of_2.cpp | |||
366 | index 98eb833..392ee97 100644 | |||
367 | --- a/gputests/texture_power_of_2.cpp | |||
368 | +++ b/gputests/texture_power_of_2.cpp | |||
369 | @@ -93,7 +93,6 @@ void RenderTexturePowerOfTwo () | |||
370 | 93 | m_GraphicsContext->Push2DWindow(w, h); | 93 | m_GraphicsContext->Push2DWindow(w, h); |
371 | 94 | 94 | ||
372 | 95 | nux::Event event; | 95 | nux::Event event; |
373 | 96 | memset(&event, 0, sizeof(nux::Event)); | ||
374 | 97 | 96 | ||
375 | 98 | do | 97 | do |
376 | 99 | { | 98 | { |