Changeset 32461 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/arb_program_shader.c
- Timestamp:
- Sep 13, 2010 5:59:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/arb_program_shader.c
r28475 r32461 586 586 static void shader_arb_load_constants(const struct wined3d_context *context, char usePixelShader, char useVertexShader) 587 587 { 588 #ifdef VBOXWDDM 589 IWineD3DDeviceImpl *device = context->device; 590 #else 588 591 IWineD3DDeviceImpl *device = context->swapchain->device; 592 #endif 589 593 IWineD3DStateBlockImpl* stateBlock = device->stateBlock; 590 594 const struct wined3d_gl_info *gl_info = context->gl_info; … … 616 620 /* We don't want shader constant dirtification to be an O(contexts), so just dirtify the active 617 621 * context. On a context switch the old context will be fully dirtified */ 622 #ifdef VBOXWDDM 623 if (!context || context->device != This) return; 624 #else 618 625 if (!context || context->swapchain->device != This) return; 626 #endif 619 627 620 628 memset(context->vshader_const_dirty + start, 1, sizeof(*context->vshader_const_dirty) * count); … … 629 637 /* We don't want shader constant dirtification to be an O(contexts), so just dirtify the active 630 638 * context. On a context switch the old context will be fully dirtified */ 639 #ifdef VBOXWDDM 640 if (!context || context->device != This) return; 641 #else 631 642 if (!context || context->swapchain->device != This) return; 643 #endif 632 644 633 645 memset(context->pshader_const_dirty + start, 1, sizeof(*context->pshader_const_dirty) * count); … … 4349 4361 static void shader_arb_select(const struct wined3d_context *context, BOOL usePS, BOOL useVS) 4350 4362 { 4363 #ifdef VBOXWDDM 4364 IWineD3DDeviceImpl *This = context->device; 4365 #else 4351 4366 IWineD3DDeviceImpl *This = context->swapchain->device; 4367 #endif 4352 4368 struct shader_arb_priv *priv = This->shader_priv; 4353 4369 const struct wined3d_gl_info *gl_info = context->gl_info;
Note:
See TracChangeset
for help on using the changeset viewer.